From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18742 invoked by alias); 5 Sep 2005 14:00:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18721 invoked by uid 22791); 5 Sep 2005 14:00:51 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 05 Sep 2005 14:00:51 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1ECHWg-00078s-R9; Mon, 05 Sep 2005 10:00:46 -0400 Date: Mon, 05 Sep 2005 14:00:00 -0000 From: Daniel Jacobowitz To: Craig Jeffree Cc: Jim Blandy , gdb@sources.redhat.com Subject: Re: Message-ID: <20050905140046.GA27407@nevyn.them.org> Mail-Followup-To: Craig Jeffree , Jim Blandy , gdb@sources.redhat.com References: <1125021866.10500.71.camel@norman> <1125301769.10500.124.camel@norman> <1125618911.8327.53.camel@norman> <1125625791.8327.76.camel@norman> <20050902131634.GB12830@nevyn.them.org> <1125905591.25254.5.camel@norman> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1125905591.25254.5.camel@norman> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-09/txt/msg00023.txt.bz2 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