improved thread id reporting

Daniel Jacobowitz drow@false.org
Sun Apr 5 03:48:00 GMT 2009


On Sun, Apr 05, 2009 at 06:11:10AM +0300, Eli Zaretskii wrote:
> > Date: Sat, 4 Apr 2009 17:21:14 -0400
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: mark.kettenis@xs4all.nl, dje@google.com, gdb@sourceware.org
> > 
> > On native Linux, they're the same as pthread_self would return.
> 
> And how's that useful?

You can use it to figure out which thread a pthread_t variable refers
to, since those are the same as returned by pthread_self.  Just look
it up in the list of threads.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list