This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Thread handles
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb at sources dot redhat dot com
- Cc: Roland McGrath <roland at redhat dot com>
- Date: Tue, 14 Jan 2003 17:21:51 -0500
- Subject: Thread handles
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