This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: PR debug/47510


Tom> After a lot of discussion on irc, we came up with another idea: extend
Tom> this patch to add DW_AT_linkage_name == 't' to the anonymous
Tom> structure.  This makes the DWARF remain a faithful representation of
Tom> the C++, but also makes it simple for debuginfo readers to understand
Tom> what is going on.  In particular I think it will make the gdb side of
Tom> this tractable.

Dodji> I have updated the patch to make add the DW_AT_linkage_name to the
Dodji> anonymous type.

Dodji> Tested on x86_64-unknown-linux-gnus against trunk and 4.6.  I think this
Dodji> is material for 4.7 that we can backport to 4.6 after its release.

I would like to ask that it be considered for 4.6.

IIRC, if this patch does not go in 4.6, then we have to write some
special and ugly GDB code to work around the debuginfo generated by 4.6.
I would much prefer it if there was no need to write this code.

Tom


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