From: Daniel Jacobowitz <drow@false.org>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: Denis PILAT <denis.pilat@st.com>, gdb@sourceware.org
Subject: Re: info thread
Date: Tue, 19 Sep 2006 21:03:00 -0000 [thread overview]
Message-ID: <20060919210316.GA17479@nevyn.them.org> (raw)
In-Reply-To: <17680.22719.512121.415472@kahikatea.snap.net.nz>
On Wed, Sep 20, 2006 at 08:53:19AM +1200, Nick Roberts wrote:
> There is no specification so we can only guess what was intended. Perhaps
> -thread-info was just meant to give info for the selected thread which
> presumably would not take long to compute even with all the details. In any
> case, as Daniel says, the problem is to devise one(s) which is/are generally
> useful.
>
> I would guess the reason that they haven't already been implemented is that
> the other information is kernel/OS dependent e.g on GNU/Linux I get:
This isn't really relevant. It breaks down into just a few parts in GDB
parlance:
- The GDB ID. That's "1", "2", et cetera in your example.
- The thread ID, produced by to_pid_to_str, e.g. "Thread -BLAH (LWP
BLAH)". This is just a string.
- The thread extra info. Not present in your example, but e.g.
"(Exiting)" or "(not ready)".
- The thread's current stack frame.
That last, I think, is not useful in MI. There's commands to fetch it
when it's wanted, and it might not be by some consumers. And it will
show up with -thread-select already. So, I would recommend including
only the GDB ID (as from -thread-list-ids) and the additional
information.
Whether they should be one field or two is anybody's guess.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-09-19 21:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 21:49 Nick Roberts
2006-09-19 13:16 ` Denis PILAT
2006-09-19 14:23 ` Daniel Jacobowitz
2006-09-19 20:55 ` Nick Roberts
2006-09-19 21:03 ` Daniel Jacobowitz [this message]
2006-09-23 19:06 ` Mark Kettenis
2006-09-23 21:59 ` Daniel Jacobowitz
2006-09-25 14:49 ` Denis PILAT
2006-09-25 14:52 ` Daniel Jacobowitz
2006-09-25 18:39 ` Michael Snyder
2006-09-25 15:25 Alain Magloire
2006-09-25 15:31 ` Daniel Jacobowitz
2006-09-25 16:25 Alain Magloire
2006-09-25 17:27 Alain Magloire
2006-09-25 17:36 ` Daniel Jacobowitz
2006-09-27 14:18 ` Denis PILAT
2006-09-28 14:35 Alain Magloire
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=20060919210316.GA17479@nevyn.them.org \
--to=drow@false.org \
--cc=denis.pilat@st.com \
--cc=gdb@sourceware.org \
--cc=nickrob@snap.net.nz \
/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