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: Craig Jeffree <craig dot jeffree at preston dot net>
- Cc: Jim Blandy <jimb at redhat dot com>, gdb at sources dot redhat dot com
- Date: Fri, 2 Sep 2005 09:16:34 -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> <1125625791.8327.76.camel@norman>
On Fri, Sep 02, 2005 at 11:49:51AM +1000, Craig Jeffree wrote:
> On Thu, 2005-09-01 at 17:20 -0700, Jim Blandy wrote:
> > If you run GDB on the executable alone, without starting it, what does
> > 'ptype struct Soi::Waypoint' say? (Running the program will load
> > shared libraries and possibly confuse the issue, but GDB should be
> > able to understand the info in the executable without running
> > anything.)
>
> (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?
--
Daniel Jacobowitz
CodeSourcery, LLC