Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Denis PILAT <denis.pilat@st.com>
Cc: Nick Roberts <nickrob@snap.net.nz>,
		gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [RFC] -thread-info new command
Date: Tue, 10 Apr 2007 15:14:00 -0000	[thread overview]
Message-ID: <20070410151342.GA10890@caradoc.them.org> (raw)
In-Reply-To: <4613B7E5.6080309@st.com>

On Wed, Apr 04, 2007 at 04:36:21PM +0200, Denis PILAT wrote:
> Is there anything new about that ?
> Should I re-propose a patch for -thread-info ?

Yes, please.  Although, I think that a manual patch is a more useful
way to start the discussion for a new MI command than a code patch.

You said in your original posting that Eclipse uses info threads but
only collects the thread ID and extra info from it; so I think the two
useful commands for Eclipse are "-thread-info" which returns the extra
info, and something which returns all the IDs and extra info.  Then
you can use one if you know only a few threads are visible, and the
other if you want to eagerly cache all the thread info.

The other two maybe useful models for an IDE are "all threads, with
stack but without extra info" and "all threads with both stack and
extra info".  That might depend on a lot of things.  If the IDE knows
in advance that the thread extra info never changes, it can avoid
requesting it.

Nick and Vladimir were talking about -var-list a month or so ago.
Maybe we should have something similar here - WDYT?

  -thread-list [--extra] [--stack]

Or maybe we should always provide the extra info, and have a way to
tell GDB that it never changes, so it can avoid the expensive queries
to the target.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-04-10 15:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-19 14:30 Denis PILAT
2007-03-20  1:44 ` Nick Roberts
2007-03-20  3:09   ` Nick Roberts
2007-03-20  3:14     ` Daniel Jacobowitz
2007-03-20  3:26       ` Nick Roberts
2007-03-21 21:09         ` Nick Roberts
2007-03-22  4:35           ` [RFC] gdb_breakpoint " Nick Roberts
2007-03-27 19:54           ` Daniel Jacobowitz
2007-03-27 21:36             ` Nick Roberts
2007-04-04 14:36               ` Denis PILAT
2007-04-10 15:14                 ` Daniel Jacobowitz [this message]
2007-04-10 14:53               ` Daniel Jacobowitz
2007-04-10 21:54                 ` Nick Roberts
2007-04-10 22:04                   ` Daniel Jacobowitz
2007-04-11  1:16                     ` Nick Roberts

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=20070410151342.GA10890@caradoc.them.org \
    --to=drow@false.org \
    --cc=denis.pilat@st.com \
    --cc=gdb-patches@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