Thread handles

Daniel Jacobowitz drow@mvista.com
Tue Jan 14 22:21:00 GMT 2003


Roland,

My question is about the precise lifetime of a td_thrhandle_t, in both
LinuxThreads' and NPTL's thread_db implementations.  Right now, GDB
re-queries for the thread handles every time the target stops.  This hurts a
lot... from the implementation, I believe they'll remain valid over time,
until the thread exits.  Is this right/reasonable?

I'm not worried if one thread handle could be eventually re-used for another
thread after the first exits; we'll notice the thread exit, discard the
thread handle, and go on with our lives.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list