From: Daniel Jacobowitz <drow@false.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: veenu.verma@ericsson.com, gdb@sourceware.org
Subject: Re: Thread exit & create events
Date: Fri, 24 Aug 2007 12:00:00 -0000 [thread overview]
Message-ID: <20070824120037.GA1084@caradoc.them.org> (raw)
In-Reply-To: <200708241046.l7OAkOel020079@brahms.sibelius.xs4all.nl>
On Fri, Aug 24, 2007 at 12:46:24PM +0200, Mark Kettenis wrote:
> > 2. GDB thread identifier is not speicified when a thread is created or
> > exited. Only system identifier is used.
> > Again thread-list-ids uses only gdb thread identifier. Hence, the
> > mismatch and the problem.
> > Since on HP-UX systems gdb thread identifier is shown, I'm guessing it
> > shouldn't be hard to do the same for Linux.
> > Is there a reason for not to have gdb identifier on linux or it's just
> > that it's not done yet.
>
> HP-UX has a rather well thought out debugging interface for threads.
> That interface includes the possibility to store a thread identifier
> in the kernel whenever a thread is created, and the debugger can ask
> for that identifier. That makes it possible for GDB to always know
> the thread identifier.
I think that's not the same question we were asked. The GDB thread
identifier is just the small integer associated with the thread in
GDB's list. We say [New thread Thread BIG-OS-THREAD-ID] instead of
[New thread 2] but you have to say "thread 2" at the GDB prompt to
select it.
There's no good reason for it that I know of. I am not sure why this
would be any different on HP-UX unless they're looking at WDB instead
of GDB.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-08-24 12:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 8:51 Veenu Verma (AS/EAB)
2007-08-24 10:46 ` Mark Kettenis
2007-08-24 12:00 ` Daniel Jacobowitz [this message]
2007-08-24 12:14 ` Veenu Verma (AS/EAB)
2007-08-24 12:19 ` Daniel Jacobowitz
2007-08-24 13:15 ` Veenu Verma (AS/EAB)
2007-08-24 13:20 ` Daniel Jacobowitz
2007-08-24 18:25 ` Jim Blandy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070824120037.GA1084@caradoc.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
--cc=veenu.verma@ericsson.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox