[PATCH] gdbsupport: remove FUNCTION_NAME

Simon Marchi simon.marchi@polymtl.ca
Tue Nov 16 20:37:46 GMT 2021


On 2021-11-16 3:09 p.m., Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> Simon> __func__ is standard C++11:
> Simon>     https://en.cppreference.com/w/cpp/language/function
> 
> Simon> Also, in C++11, __func__ expands to the demangled function name, so the
> Simon> mention in the comment above FUNCTION_NAME doesn't apply anymore.
> Simon> Finally, in places where FUNCTION_NAME is used, I think it's enough to
> Simon> print the function name, no need to print the whole signature.
> Simon> Therefore, I propose to just remove FUNCTION_NAME and update users to
> Simon> use the standard __func__.
> 
> Looks reasonable to me.
> 
> Tom
> 


Thanks, pushed.

Simon


More information about the Gdb-patches mailing list