Viewing the symbol table as a database?

Daniel Jacobowitz drow@mvista.com
Tue Sep 17 09:38:00 GMT 2002


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



More information about the Gdb mailing list