This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: <incomplete type>
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: Craig Jeffree <craig dot jeffree at preston dot net>, gdb at sources dot redhat dot com
- Date: Sun, 11 Sep 2005 21:35:39 -0400
- Subject: Re: <incomplete type>
- References: <1125021866.10500.71.camel@norman> <m3acj45xnv.fsf@alligator.red-bean.com> <1125301769.10500.124.camel@norman> <m3wtm48uiv.fsf@alligator.red-bean.com> <1125618911.8327.53.camel@norman> <m3k6i0uxp8.fsf@alligator.red-bean.com>
On Thu, Sep 01, 2005 at 05:20:51PM -0700, Jim Blandy wrote:
> >> (I'm apparently wrong about the DW_AT_name being mangled. Does the
> >> DW_AT_containing_type attribute of the first die point at something
> >> named "Soi"?)
> >
> > The containing type for 'Waypoint' points to a die that appears to
> > describe Waypoint's base class.
>
> That's odd. The Dwarf 3 spec only mentions DW_AT_containing_type in
> the context of dies describing pointer-to-member types. So the
> attribute wasn't what I guessed it was, but it also doesn't belong
> there.
This is a GNUism, and a very bad one nowadays, especially since GDB
relies on it. I have queued up behind my other pending DWARF patches
some fixes for that. For GCC, DW_AT_containing_type is the type
containing the class's vtable pointer.
--
Daniel Jacobowitz
CodeSourcery, LLC