This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB doesn't display thread_id while debugging a core file
- From: Daniel Jacobowitz <drow at false dot org>
- To: Carlos Eduardo Seo <cseo at linux dot vnet dot ibm dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 6 Aug 2007 16:33:11 -0400
- Subject: Re: GDB doesn't display thread_id while debugging a core file
- References: <46B78405.9000706@linux.vnet.ibm.com>
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