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: Thu, 03 Feb 2011 14:04:01 -0700
- Subject: Re: PR debug/47510
- References: <m31v3x10hv.fsf@redhat.com> <m3hbcmie83.fsf@fleche.redhat.com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> It seems to me that it would be simpler to just emit 't' as an ordinary
Tom> DW_TAG_structure_type and not emit a typedef at all.
After a lot of discussion on irc, we came up with another idea: extend
this patch to add DW_AT_linkage_name == 't' to the anonymous structure.
This makes the DWARF remain a faithful representation of the C++, but
also makes it simple for debuginfo readers to understand what is going
on. In particular I think it will make the gdb side of this tractable.
Tom