This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PING] [rfc]: Framework for looking up multiply defined global symbols in shared libraries


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]