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.