This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Minimal symbols and gdb's two-stage symbol reading
- To: Orjan Friberg <orjan dot friberg at axis dot com>, gdb-patches at sources dot redhat dot com
- Subject: Re: Minimal symbols and gdb's two-stage symbol reading
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Thu, 23 Nov 2000 08:50:27 -0700
- References: <3A1D337B.42ED5B3D@axis.com>
On Nov 23, 4:10pm, 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.
I don't know the answer to this, but it seems to me that even if the
answer is "no", you could still obtain the symbol from bfd directly.
E.g, see bfd_lookup_symbol() in solib-svr4.c. I doubt you'll need
to go to these extremes though.
> 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).
You want to check for this symbol in your ${ARCH}_gdbarch_init function,
right?