This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR debug/47510
- From: Tom Tromey <tromey at redhat dot com>
- To: Dodji Seketeli <dodji at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Jan Kratochvil <jkratoch at redhat dot com>
- Date: Tue, 15 Mar 2011 10:12:05 -0600
- Subject: Re: PR debug/47510
- References: <m31v3x10hv.fsf@redhat.com> <m3hbcmie83.fsf@fleche.redhat.com> <m3d3n8esou.fsf@fleche.redhat.com> <m3mxkxuzbe.fsf@redhat.com>
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