gdbsupport: remove FUNCTION_NAME
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 13 Nov 2021 02:12:00 +0000 (21:12 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 16 Nov 2021 20:37:00 +0000 (15:37 -0500)
commit830070c66d25e6749b7159009f1d87d85f02eaa3
tree124d4d830112e4ffb121b3cefa4e1f2335fcd259
parent8579fd136a614985bd27f20539c7bb7c5a51287d
gdbsupport: remove FUNCTION_NAME

__func__ is standard C++11:

    https://en.cppreference.com/w/cpp/language/function

Also, in C++11, __func__ expands to the demangled function name, so the
mention in the comment above FUNCTION_NAME doesn't apply anymore.
Finally, in places where FUNCTION_NAME is used, I think it's enough to
print the function name, no need to print the whole signature.
Therefore, I propose to just remove FUNCTION_NAME and update users to
use the standard __func__.

Change-Id: I778f28155422b044402442dc18d42d0cded1017d
gdb/darwin-nat.h
gdbsupport/common-utils.h
gdbsupport/gdb_assert.h