This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc/rft] [3/3] Remove stabs target macros: SOFUN_ADDRESS_MAYBE_MISSING
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: eliz at gnu dot org
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 15 Oct 2007 15:50:09 +0200 (CEST)
- Subject: Re: [rfc/rft] [3/3] Remove stabs target macros: SOFUN_ADDRESS_MAYBE_MISSING
Eli Zaretskii wrote:
> > +@code{N_FUN} stabs have an address of zero. Instead, you should find the
> > +addresses where the function starts by taking the function name from the
> > +stab, and then looking that up in the minsyms (the linker/assembler symbol
> > +table). In other words, the stab has the name, and the linker/assembler
> > +symbol table is the only place that carries the address.
>
> I'm confused by the "Instead" thing: instead of what? instead of using
> the (otherwise non-zero) address of N_FUN?
Yes, exactly. Do you feel this needs to be clarified?
"Instead of using this address, you should find ..." ?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com