This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa:ppc64] Get descriptor FN from the same object file as symbol ".FN"
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Thu, 13 Nov 2003 18:15:44 -0700
- Subject: Re: [rfa:ppc64] Get descriptor FN from the same object file as symbol ".FN"
- References: <3FB420DB.6030809@redhat.com>
On Nov 13, 7:24pm, Andrew Cagney wrote:
> The attached tweaks the tail end of the ppc64_sysv_abi_push_dummy_call
> code so that it restricts the search for the descriptor FN (that
> corresponds to function ".FN") to the object file that contains ".FN".
> Given shared libraries, several object files can contain the same symbol
> so searching for an unqualified "FN" can end up finding the descriptor
> in the wrong shared library :-(. This problem occures when trying to go
> backwards from ".malloc" to "malloc".
>
> 2003-11-13 Andrew Cagney <cagney@redhat.com>
>
> * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
> * ppc-sysv-tdep.c: Include "objfiles.h".
> (ppc64_sysv_abi_push_dummy_call): Provide the
> the FN's objfile when looking for the descriptor.
Okay.
Kevin