[PATCH 2/6] gdbserver: remove function abbrevs from debugging text

Tom Tromey tromey@redhat.com
Wed Dec 18 15:13:00 GMT 2013


>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> The function names in debugging output will be out of sync as function
Yao> names are changed, unless macro __func__ is used.  However, __func__
Yao> is defined in C99 and we are using C90 (?) in GDB.

FWIW we found out a while back that gdbserver actually relies on GNU C
-- see the ax_debug and ax_debug_1 defines in ax.c.  And, BFD
unconditionally uses "long long" in spots.  So while the rule is
officially that gdb is C89, in practice that isn't actually true.

Tom



More information about the Gdb-patches mailing list