This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Fix PR debug/33155: Don't add DW_AT_MIPS_linkage_name for C functions
- From: Daniel Jacobowitz <drow at false dot org>
- To: Danny Smith <dansmister at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, gdb at sourceware dot org
- Date: Thu, 1 May 2008 20:17:23 -0400
- Subject: Re: Fix PR debug/33155: Don't add DW_AT_MIPS_linkage_name for C functions
- References: <9c03c2dd0804261526s6b04e327gb66824c878288428@mail.gmail.com>
On Sun, Apr 27, 2008 at 10:26:47AM +1200, Danny Smith wrote:
> The attached fixes GCC bug
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33155
>
> by preventing the addition of DW_AT_MIPS_linkage_name for C functions.
> On MS Windows targets, the external assembler name of __stdcall functions are
> mangled in C as well as C++ by the addition of an '@n' suffix.
> GDB however does not appear to handle DW_AT_MIPS_linkage_name for C functions.
>
> Should this be addressed in gdb sources rather than in GCC?
GDB's reliance on DW_AT_MIPS_linkage_name is somewhat dubious in
general. The way GCC is using it sounds correct, or as close to that
as you get for something with no written specification. I have
patches to improve GDB's behavior but meanwhile I don't see any harm
in this patch.
--
Daniel Jacobowitz
CodeSourcery