[rfa/threads] Convert thread event descriptors to code addrs
Wed Nov 26 04:26:00 GMT 2003
On Tue, Nov 25, 2003 at 06:39:42PM -0500, Andrew Cagney wrote:
> In the light of roland's comments, I've checked in the attached
> variation on the original patch.
> It still does the conversion but in GDB's libthread_db caller
> (enable_thread_event_reporting) and not in libthread_db's symbol lookup
> callee (ps_pglobal_lookup).
> This way, libthread_db is free to search for either:
> .__nptl_create_event: the start address
> __nptl_create_event: the descriptor
> (the original change would have restricted searches to just the start
> address - not a problem now but we never know) and at the same time
> ensure that GDB sets breakpoints at the address it needs.
> 2003-11-25 Andrew Cagney <firstname.lastname@example.org>
> * thread-db.c (enable_thread_event): New function. Ensure that BP
> is a code address.
> (enable_thread_event_reporting): Use enable_thread_event.
Hmm. Does this mean remote_lookup_symbol (spelling?) should do the
MontaVista Software Debian GNU/Linux Developer
More information about the Gdb-patches