This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Remove "(anonymous class)" dummy name in partial DIEs
- From: Daniel Jacobowitz <drow at false dot org>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 9 Sep 2010 12:10:56 -0400
- Subject: Re: [rfc] Remove "(anonymous class)" dummy name in partial DIEs
- References: <201009081724.o88HOoTD006483@d12av02.megacenter.de.ibm.com>
On Wed, Sep 08, 2010 at 07:24:50PM +0200, Ulrich Weigand wrote:
> Hello,
>
> I'm seeing lot of error messages along the lines of "(anonymous class)
> is defined only in psymtab" when running "maint check-symtabs" on ARM
> when glibc debug info is available.
>
> This seems to be caused by the fact that partial DIEs corresponding to
> anonymous structs or classes get a dummy name of "(anonymous class)"
> in fixup_partial_die, while the corresponding DIEs of full symbols
> will actually have a NULL name. This discrepancy is detected by the
> check-symtabs command ...
>
> The dummy name "(anonymous class)" was introduced in this patch:
> http://sourceware.org/ml/gdb-patches/2004-04/msg00070.html
> but I'm not quite sure why this was done. Dan, do you recall?
To match the full symbol reader, I think. But I can't find what else
used "(anonymous class)"; I may have been confused by "(anonymous
namespace)".
> Is there any reason I'm missing why this dummy name should be set?
I don't think there is, at least not any more.
--
Daniel Jacobowitz
CodeSourcery