This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PING] [rfc]: Framework for looking up multiply defined global symbols in shared libraries
- From: Daniel Jacobowitz <drow at false dot org>
- To: Markus Deuling <deuling at de dot ibm dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>, Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Thu, 10 May 2007 09:00:30 -0400
- Subject: Re: [PING] [rfc]: Framework for looking up multiply defined global symbols in shared libraries
- References: <464310CA.1030602@de.ibm.com>
On Thu, May 10, 2007 at 02:32:10PM +0200, Markus Deuling wrote:
> Hi,
>
>
> this patch introduces a framework for looking up multiply defined global
> symbols from shared libraries. Solib handler like for example solib-svr4.c can
> now install a callback to implement a library-specific routine for looking up
> global symbols.
>
>
> As an example I implemented a special lookup routine for ELF shared libraries
> linked with -Bsymbolic. While the focus is within such a library, the global
> symbol lookup shall first search for the symbol within this library and then
> go through the main executable if not found.
Is this the point of the patch, or just an example? I mean, what else
would you use this for besides -Bsymbolic?
There's some benefit to looking up the right symbol, e.g. for "print
foo()". But for breakpoints, I still think the way to go is to
breakpoint all functions with the same name and/or allow the user to
specify a copy explicitly (apparently DBX does the latter).
--
Daniel Jacobowitz
CodeSourcery