This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Viewing the symbol table as a database?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Andrew Cagney <ac131313 at ges dot redhat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 17 Sep 2002 12:38:28 -0400
- Subject: Re: Viewing the symbol table as a database?
- References: <3D875955.9040508@ges.redhat.com>
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