This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Work around invalid G++ DWARF for unnamed aggregates
- From: Tom Tromey <tromey at redhat dot com>
- To: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 25 Mar 2010 14:03:20 -0600
- Subject: Re: [rfc] Work around invalid G++ DWARF for unnamed aggregates
- References: <201003251022.o2PAM3dl017253@d12av02.megacenter.de.ibm.com>
- Reply-to: tromey at redhat dot com
>>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:
Ulrich> It should be easy to work around this problem with older GCC
Ulrich> versions by simply ignoring DW_AT_name attributes with such
Ulrich> names in dwarf2_name. The patch below implements this. It also
Ulrich> fixes a logic bug in completer.c exposed by this change, where
Ulrich> in an unnamed struct *every* method was considered to be a
Ulrich> constructor (instead of none).
[...]
Ulrich> Does this look reasonable?
FWIW, yes, it looks reasonable to me.
Tom