[rfa/threads] Convert thread event descriptors to code addrs

Andrew Cagney ac131313@redhat.com
Tue Nov 25 21:13:00 GMT 2003


For PPC64 every function has two minimal symbols vis:

.__nptl_create_event: the start address
__nptl_create_event: the descriptor

This patch modifies ps_pglobal_lookup so that it always returns the 
function's start address.  Doing this ensures that libthread_db and 
GDB's thread code are "on the same page" when it comes to the true 
address of the thread-create and thread-death breakpoints.

The alternative would be to modify libthread_db so that it knew that 
PPC64 symbol were special but I suspect that it doesn't want to know 
about such underlying details.

ok for mainline?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20031125/c8021f5f/attachment.ksh>

More information about the Gdb-patches mailing list