From: Daniel Jacobowitz <drow@false.org>
To: Craig Jeffree <craig.jeffree@preston.net>
Cc: Jim Blandy <jimb@redhat.com>, gdb@sources.redhat.com
Subject: Re: <incomplete type>
Date: Mon, 05 Sep 2005 14:00:00 -0000 [thread overview]
Message-ID: <20050905140046.GA27407@nevyn.them.org> (raw)
In-Reply-To: <1125905591.25254.5.camel@norman>
On Mon, Sep 05, 2005 at 05:33:10PM +1000, Craig Jeffree wrote:
> 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.
That means it's almost certainly a bug in GDB.
> 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?
Should, but this code is very tricky, to say the least. And it's
sensitive to the exact version of the compiler in use. Remind me, are
you using CVS HEAD? And, I don't suppose you've got a smaller
testcase?
Failing that, could you post the readelf output for the entire
compilation unit containing Soi::Waypoint? From the compilation unit
header all the way down to the next one.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-09-05 14:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-26 2:06 Craig Jeffree
2005-08-26 19:04 ` Jim Blandy
2005-08-29 7:50 ` Craig Jeffree
2005-08-29 18:38 ` Jim Blandy
2005-09-01 23:55 ` Craig Jeffree
2005-09-02 0:22 ` Jim Blandy
2005-09-02 1:50 ` Craig Jeffree
2005-09-02 13:16 ` Daniel Jacobowitz
2005-09-05 7:34 ` Craig Jeffree
2005-09-05 14:00 ` Daniel Jacobowitz [this message]
2005-09-06 7:15 ` Craig Jeffree
2005-09-12 1:34 ` Daniel Jacobowitz
2005-09-15 5:12 ` Craig Jeffree
2005-09-19 7:44 ` Craig Jeffree
2005-09-12 1:35 ` Daniel Jacobowitz
2005-09-02 2:05 ` Craig Jeffree
-- strict thread matches above, loose matches on Subject: below --
2005-05-01 21:21 "Incomplete Type" lin q
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050905140046.GA27407@nevyn.them.org \
--to=drow@false.org \
--cc=craig.jeffree@preston.net \
--cc=gdb@sources.redhat.com \
--cc=jimb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox