From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11693 invoked by alias); 23 Aug 2002 18:47:03 -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 11686 invoked from network); 23 Aug 2002 18:47:02 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 23 Aug 2002 18:47:02 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17iJSZ-0001oA-00; Fri, 23 Aug 2002 13:47:03 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17iJTG-0006eo-00; Fri, 23 Aug 2002 14:47:46 -0400 Date: Fri, 23 Aug 2002 11:47:00 -0000 From: Daniel Jacobowitz To: David Carlton Cc: Petr Sorfa , gdb Subject: Re: adding namespace support to GDB Message-ID: <20020823184746.GA25528@nevyn.them.org> Mail-Followup-To: David Carlton , Petr Sorfa , gdb References: <3D6677D3.6E84743C@caldera.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00296.txt.bz2 On Fri, Aug 23, 2002 at 11:41:06AM -0700, David Carlton wrote: > In article <3D6677D3.6E84743C@caldera.com>, Petr Sorfa > writes: > > > Well to help things along I will be submitting a DWARF patch that > > will supported imported declarations which are essential for FORTRAN > > modules and C++ namespaces. > > Great, I look forward to reading it. > > > This is essential for the "using" commands in either language (of > > course the compiler needs to generate the correct DWARF > > ;o)). > > Yes, well, there is always that. Certainly it seems like a solution > for C++ will initially have to get recreate namespace info from > DW_AT_MIPS_linkage_name, and there's no way that we'll be able to > allow users to use symbol names as if all the appropriate using > directives were in effect, since that information simply isn't in the > debug information that GCC is currently producing. (Though that's not > the end of the world: we should be able to do name lookup using C++'s > name resolution rules based on the enclosing function and its > arguments, presumably.) C++ certainly does _not_ need to reconstruct from DW_AT_MIPS_linkage_name. Everything we need should be there in DW_TAG_namespace and DW_TAG_structure/class markers; I have patches to use this information, with the caveats I noted in my other message. I am gradually working on removing all uses of the physname from the C++ debugging code. It's a hack (and a space waste!). -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer