From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19934 invoked by alias); 23 Aug 2002 18:05:52 -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 19927 invoked from network); 23 Aug 2002 18:05:51 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 23 Aug 2002 18:05:51 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17iIoj-0001jL-00; Fri, 23 Aug 2002 13:05:53 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17iIpP-0005SO-00; Fri, 23 Aug 2002 14:06:35 -0400 Date: Fri, 23 Aug 2002 11:05:00 -0000 From: Daniel Jacobowitz To: David Carlton Cc: gdb Subject: Re: adding namespace support to GDB Message-ID: <20020823180635.GA20780@nevyn.them.org> Mail-Followup-To: David Carlton , gdb References: 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/msg00292.txt.bz2 On Fri, Aug 23, 2002 at 08:42:40AM -0700, David Carlton wrote: > I recently asked Daniel Jacobwitz for suggestions as to what I could > do to help GDB, and he suggested that I might try adding proper > namespace support. I've skimmed a thread on the issue from early > April with lots of interesting ideas; at some point, it sounded like > Jim Blandy was about to start writing up some concrete possible > interfaces, and I was wondering if anything more came of that. > > For the time being, I'm going to reread that thread more closely, look > at Petr Sorfa's module patch, look at the DWARF-3 standard, look at > existing GDB code, and think about this for a while. (Or at least I > hope that's what I'm going to do: maybe I'll instead spend all of my > time arguing with Stanford's benefits office. Anybody know of any > interesting free software jobs in countries with nationalized health > insurance?) But I don't want to duplicate effort if somebody else has > already started working on this. Meanwhile, I'm working on ugly namespace support - without all the symbol table and scoping work that we'll need to make things quite "correct", I'm trying to make the debug readers provide scope information (mostly done) and the rest of GDB cope with it (investigating). I have patches for both stabs and DWARF-2 to generate class and types names properly qualified, but because the rest of GDB doesn't expect this they never get unqualified; we get things like std::bar std::bar::function(std::bar&) because it doesn't know that the std:: can be elided. Etc. Hope to have more time to work on this next week. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer