From: "Veenu Verma (AS/EAB)" <veenu.verma@ericsson.com>
To: "Daniel Jacobowitz" <drow@false.org>,
"Mark Kettenis" <mark.kettenis@xs4all.nl>
Cc: <gdb@sourceware.org>
Subject: RE: Thread exit & create events
Date: Fri, 24 Aug 2007 12:14:00 -0000 [thread overview]
Message-ID: <9171BA436A79BF46953672FB5A11DA5E012B4730@esealmw104.eemea.ericsson.se> (raw)
In-Reply-To: <20070824120037.GA1084@caradoc.them.org>
>I am not sure why this would be any different on HP-UX unless they're
looking at WDB instead of GDB.
In GDB documentation it says
For example, on HP-UX, you see
[New thread 2 (system thread 26594)]
For example, on GNU/Linux, you might see
[New Thread 46912507313328 (LWP 25582)
Is it difficult to incorporate this small integer while reporting an
event in GDB ?
/ Veenu
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@false.org]
Sent: Friday, August 24, 2007 2:01 PM
To: Mark Kettenis
Cc: Veenu Verma (AS/EAB); gdb@sourceware.org
Subject: Re: Thread exit & create events
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:14 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
2007-08-24 12:14 ` Veenu Verma (AS/EAB) [this message]
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=9171BA436A79BF46953672FB5A11DA5E012B4730@esealmw104.eemea.ericsson.se \
--to=veenu.verma@ericsson.com \
--cc=drow@false.org \
--cc=gdb@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
/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