This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [rfc] Remove "(anonymous class)" dummy name in partial DIEs


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


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