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 Sun, 2005-09-11 at 21:34 -0400, Daniel Jacobowitz wrote:
> Here's what I think is happening.
> 
> There's considerable code in GDB to guess the namespace of a structure
> when this problem is encountered.  But that code relies upon the
> mangled names of member functions of the type.  Probably it is
> successfully triggering for the _definition_ of the type, but in some
> other compilation unit (the one with the reference that shows up as
> incomplete), the DIE containing the declaration of Soi::Waypoint
> doesn't have enough information.  So the best GDB can come up with is
> "Waypoint".  Then it looks, and doesn't find Waypoint - the only
> definition was Soi::Waypoint, with a namespace qualifier.  So, no
> match.

Thanks for looking at this for me Daniel.  I assume the easiest way to
check if this hypothesis is correct would be for me to track down the
patch you mention below so I will go away and do that.

> 
> There's just nothing GDB can do, if that's what's happening.  You may
> be able to find a GCC patch in the archives of gcc-patches or
> gdb-patches to add DW_AT_namespace support to GCC 3.2.3, if rebuilding
> the compiler is an option.  Otherwise you're stuck until you upgrade
> GCC.
> 
> 


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