This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/6] gdbserver: remove function abbrevs from debugging text
- From: Tom Tromey <tromey at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Wed, 18 Dec 2013 08:13:48 -0700
- Subject: Re: [PATCH 2/6] gdbserver: remove function abbrevs from debugging text
- Authentication-results: sourceware.org; auth=none
- References: <yjt261qnupa6 dot fsf at ruffy dot mtv dot corp dot google dot com> <52B0EF1E dot 7080302 at codesourcery dot com>
>>>>> "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