From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3440 invoked by alias); 19 Sep 2005 07:44: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 2890 invoked by uid 22791); 19 Sep 2005 07:44:20 -0000 Received: from chfw.preston.net (HELO universe.preston.net) (202.14.89.130) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 19 Sep 2005 07:44:20 +0000 Received: from norman (norman.preston.net [202.14.10.82]) by universe.preston.net (8.11.6/8.11.6) with ESMTP id j8J7hQK09296; Mon, 19 Sep 2005 17:43:26 +1000 Subject: Re: From: Craig Jeffree To: Daniel Jacobowitz Cc: Jim Blandy , gdb@sources.redhat.com In-Reply-To: <1126761070.25254.325.camel@norman> 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> <1126761070.25254.325.camel@norman> Content-Type: text/plain Date: Mon, 19 Sep 2005 07:44:00 -0000 Message-Id: <1127115806.25254.404.camel@norman> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-09/txt/msg00124.txt.bz2 On Thu, 2005-09-15 at 15:11 +1000, Craig Jeffree wrote: > 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. > > > > 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. > > > > Just for the record I found the patch to dwarf2out.c (rev 1.466) and applied it to gcc 3.2.3 (with a little bit of massaging). I then used this patched compiler to build my app and was able to resolve the troubled incomplete type in GDB. So in short, Daniel was spot on regarding what occured inside GDB and this issue is resolved when using the namespace patch mentioned above which comes in the stock 3.4.x version of gcc. Thanks for helping. Craig