From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25571 invoked by alias); 15 Sep 2005 05:12:27 -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 25549 invoked by uid 22791); 15 Sep 2005 05:12:15 -0000 Received: from chfw.preston.net (HELO universe.preston.net) (202.14.89.130) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 15 Sep 2005 05:12:15 +0000 Received: from norman (norman.preston.net [202.14.10.82]) by universe.preston.net (8.11.6/8.11.6) with ESMTP id j8F5BA414839; Thu, 15 Sep 2005 15:11:10 +1000 Subject: Re: From: Craig Jeffree To: Daniel Jacobowitz Cc: Jim Blandy , gdb@sources.redhat.com In-Reply-To: <20050912013403.GA10666@nevyn.them.org> References: <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> <20050905140046.GA27407@nevyn.them.org> <1125990841.25254.62.camel@norman> <20050912013403.GA10666@nevyn.them.org> Content-Type: text/plain Date: Thu, 15 Sep 2005 05:12:00 -0000 Message-Id: <1126761070.25254.325.camel@norman> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-09/txt/msg00101.txt.bz2 On Sun, 2005-09-11 at 21:34 -0400, Daniel Jacobowitz wrote: > Here's what I think is happening. > > There's considerable code in GDB to guess the namespace of a structure > when this problem is encountered. But that code relies upon the > mangled names of member functions of the type. Probably it is > successfully triggering for the _definition_ of the type, but in some > other compilation unit (the one with the reference that shows up as > incomplete), the DIE containing the declaration of Soi::Waypoint > doesn't have enough information. So the best GDB can come up with is > "Waypoint". Then it looks, and doesn't find Waypoint - the only > definition was Soi::Waypoint, with a namespace qualifier. So, no > match. Thanks for looking at this for me Daniel. I assume the easiest way to check if this hypothesis is correct would be for me to track down the patch you mention below so I will go away and do that. > > There's just nothing GDB can do, if that's what's happening. You may > be able to find a GCC patch in the archives of gcc-patches or > gdb-patches to add DW_AT_namespace support to GCC 3.2.3, if rebuilding > the compiler is an option. Otherwise you're stuck until you upgrade > GCC. > >