This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]