This is the mail archive of the gdb@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: <incomplete type>


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


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