From: Daniel Jacobowitz <drow@false.org>
To: Alain Magloire <alain@qnx.com>
Cc: Denis PILAT <denis.pilat@st.com>,
nickrob@snap.net.nz, gdb@sourceware.org
Subject: Re: info thread
Date: Mon, 25 Sep 2006 17:36:00 -0000 [thread overview]
Message-ID: <20060925173626.GA13150@nevyn.them.org> (raw)
In-Reply-To: <3518719F06577C4F85DA618E3C37AB9106B12B6C@nimbus.ott.qnx.com>
I really wish the same set of people read both this list and
cdt-debug-dev, or even cdt-debug-dev and dmi-discuss if that's
more appropriate... I keep ending up saying the same thing on both :-)
And my message to cdt-debug-dev isn't in the web archive yet.
On Mon, Sep 25, 2006 at 01:27:41PM -0400, Alain Magloire wrote:
> It is my understanding, that the output is platform dependent. Are you
> suggesting a new command to retrieve this info? I was hopping we could stuff
> this in the output of -thread-list-ids.
>
> Basically, we would like to retrieve more information on a thread what is
> the best way for MI?
I wrote:
There are, in the GDB manual, three related commands: -thread-info
(unimplemented), -thread-list-all-threads (unimplemented), and
-thread-list-ids. What I've been asking on the GDB list is which
information is useful for -thread-list-all-threads versus -thread-info.
Collecting data like "is this thread interruptible" is definitely
important and GDB has a mechanism for it already. But you have to
do round trips with the target to get this sort of thing. And
currently you have to do that for the OS name too when talking
to a remote target.
So: is there a useful middle ground between -thread-list-ids
(definitely shouldn't return it) and -thread-info (definitely
should) for -thread-list-all-threads to fill? Or should we just
do one at a time, and let e.g. the client request extra info
on specific threads which are currently visible in a scrolling
pane?
In the mean time, I think that implementing -thread-info and
adding the current thread to -thread-list-ids are both useful.
Pawel's just responded:
I see what you're getting at. My intent is to take advantage of
lazy-loading and only request thread-info for threads that are visible
in the UI. But even then, requesting information for 20 or so threads
one at a time could be painfully slow. So if -thread-list-all-threads
were to return the same info as -thread-info, and if it took a list of
thread IDs as an optional argument, that would solve this problem
perfectly.
Alain, Denis, what do you think?
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-09-25 17:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-25 17:27 Alain Magloire
2006-09-25 17:36 ` Daniel Jacobowitz [this message]
2006-09-27 14:18 ` Denis PILAT
-- strict thread matches above, loose matches on Subject: below --
2006-09-28 14:35 Alain Magloire
2006-09-25 16:25 Alain Magloire
2006-09-25 15:25 Alain Magloire
2006-09-25 15:31 ` Daniel Jacobowitz
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
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
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=20060925173626.GA13150@nevyn.them.org \
--to=drow@false.org \
--cc=alain@qnx.com \
--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