From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23982 invoked by alias); 17 Sep 2002 16:38:30 -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 23975 invoked from network); 17 Sep 2002 16:38:29 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 17 Sep 2002 16:38:29 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17rMIu-00042j-00; Tue, 17 Sep 2002 12:38:28 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17rLMq-00084u-00; Tue, 17 Sep 2002 12:38:28 -0400 Date: Tue, 17 Sep 2002 09:38:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: Viewing the symbol table as a database? Message-ID: <20020917163828.GA31033@nevyn.them.org> Mail-Followup-To: Andrew Cagney , gdb@sources.redhat.com References: <3D875955.9040508@ges.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D875955.9040508@ges.redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-09/txt/msg00225.txt.bz2 On Tue, Sep 17, 2002 at 12:33:25PM -0400, Andrew Cagney wrote: > Hello, > > Should core GDB view the symbol table as a database. That way the > internals are really abstracted. > > For instance, instead of pc->block->nametab->symbol, just do: > lookup_symbol (symtab, pc, "name"); > > Disclaimer: this isn't my idea but I think it is good. It will let the > data structures scale beyond currend address space limitations. Yes. I believe this is down the road of David's changes. It's not quite that simple - I think we will need some options to the lookup, but it's not clear what they are yet. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer