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 04:51:11PM +0200, Markus Deuling wrote:
> The lookup for the '-Bsymbolic' library is just one example.
> 
> ELF says that the symbol resolution algorithm for that kind of library shall 
> start
> within the library instead of the main executable. If this lookup fails the 
> "normal"
> lookup starting in the main executable shall take place.

Supporting -Bsymbolic this way seems like a nice idea.

> There'll be another patch using that lookup framework for the combined debugger 
> for Cell.
> If GDB debugs a Cell binary and stands in a SPU thread (which GDB thinks of as 
> a library) then the lookup of a symbol would prefer the symbol in the main 
> executable (in the PPE thread)
> if available. The second patch using that framework makes sure that a symbol 
> lookup within
> a SPU thread prefers symbols from that SPU thread.

OK, we can talk about this a little later when GDB is ready to handle
two architectures at once.

I'll look at the patch.  I was really hoping someone else would; I
need help with patch review.

-- 
Daniel Jacobowitz
CodeSourcery


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