Re: GDB doesn't display thread_id while debugging a core file

Daniel Jacobowitz
2007-08-06T20:33:21Z

On Mon, Aug 06, 2007 at 05:26:45PM -0300, Carlos Eduardo Seo wrote:
> Is a solution like this acceptable?

No, sorry. The thread ID is produced by NPTL's libthread_db library,
which we do not use on core files because it might not match the
version in use when the program was running; and thus it might produce
garbage (or more often, fail gracefully).

Now that most platforms have moved from LinuxThreads to NPTL, this
might be worth another look. Opportunistically, sometimes we can use
libthread_db and get sensible answers.

--
Daniel Jacobowitz
CodeSourcery