From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30468 invoked by alias); 5 Sep 2005 07:34:32 -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 30447 invoked by uid 22791); 5 Sep 2005 07:34:25 -0000 Received: from chfw.preston.net (HELO universe.preston.net) (202.14.89.130) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 05 Sep 2005 07:34:25 +0000 Received: from norman (norman.preston.net [202.14.10.82]) by universe.preston.net (8.11.6/8.11.6) with ESMTP id j857XBP17567; Mon, 5 Sep 2005 17:33:11 +1000 Subject: Re: From: Craig Jeffree To: Daniel Jacobowitz Cc: Jim Blandy , gdb@sources.redhat.com In-Reply-To: <20050902131634.GB12830@nevyn.them.org> 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> Content-Type: text/plain Date: Mon, 05 Sep 2005 07:34:00 -0000 Message-Id: <1125905591.25254.5.camel@norman> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-09/txt/msg00021.txt.bz2 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.