This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: threads/1938: gdb gives incorrect thread numbering and is unstable
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 3 May 2005 20:58:01 -0000
- Subject: Re: threads/1938: gdb gives incorrect thread numbering and is unstable
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR threads/1938; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: pje@haystack.mit.edu
Cc: gdb-gnats@sources.redhat.com
Subject: Re: threads/1938: gdb gives incorrect thread numbering and is unstable
Date: Tue, 3 May 2005 16:47:47 -0400
On Tue, May 03, 2005 at 08:35:44PM -0000, pje@haystack.mit.edu wrote:
> >Description:
> When run on a multithreaded program, gdb gives impossibly large
> negative thread IDs.
No, they are correct. Thread IDs in NPTL are pointer values. GDB
should display them as unsigned, that's all.
> Additionally, debugging the program often
> results in segfaults and other stack instabilities.
Your example didn't show any of these.
> gdb ./test_threads
> GNU gdb Red Hat Linux (6.1post-1.20040607.62rh)
You may want to report bugs in this version of GDB to Red Hat directly.
--
Daniel Jacobowitz
CodeSourcery, LLC