Minimal symbols and gdb's two-stage symbol reading

Andrew Cagney ac131313@cygnus.com
Fri Nov 24 03:30:00 GMT 2000


Orjan Friberg wrote:
> 
> Would it be safe to rely on an absolute global symbol being read into
> the minimal symbol table with the initial 'file' command (without using
> the '-readnow' option) for an a.out target? From looking at
> read_dbx_symtab it wasn't clear to me what happens.
> 
> As discussed in a previous thread, I will use the symbol as an ABI
> indicator, and I'm just wondering if gdb's two-stage symbol reading
> could interfere with my intentions (i.e., the symbol not being there yet
> when I want it to).

If I'm understanding things correct then I think Kevin's suggestion is
preferable to PeterSs.

The arch_init() function shouldn't be relying on global state.  Rather
it should only be looking to its immediate parameters for information.

	Andrew


More information about the Gdb-patches mailing list