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

Daniel Jacobowitz drow@mvista.com
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.
> 
> Andrew

> 2003-11-25  Andrew Cagney  <cagney@redhat.com>
> 
> 	* 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
same thing?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb-patches mailing list