This is the mail archive of the gdb@sourceware.org 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]

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


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


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