This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix PR debug/33155: Don't add DW_AT_MIPS_linkage_name for C functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]