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 Fri, 2005-09-02 at 09:16 -0400, Daniel Jacobowitz wrote:
> >   (gdb) ptype struct Soi::Waypoint
> >   No struct type named Soi.
> > [That's right, Soi's a namespace, but why doesn't it recongnise
> > Soi::Waypoint as a struct?]
> 
> Craig, could you try this using gdb -readnow?
> 

Good work Daniel.  It works when I do this.  Thank-you.

Okay, so what's the difference?  I know in my application the specific
example I'm testing with uses a name ('Waypoint') which exists in
different forms throughout the application (there are a few different
namespaces that have a class or something named 'Waypoint').  Is this
the cause, does gdb not know which one to look at if they aren't all
loaded?  That doesn't seem right, it should still know how to find the
right one shouldn't it?

Is there any other way to work around this?  I ask because my
application is huge and gdb takes about 15 minutes to start up when I
use the '-readnow' flag.  Once started gdb's virtual memory usage is
about 2gb.

Cheers,
Craig.


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