Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: "Marc Khouzam" <marc.khouzam@ericsson.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Process exit in multi-process, and gdb's selected thread.
Date: Tue, 17 Feb 2009 16:56:00 -0000	[thread overview]
Message-ID: <200902171633.15303.pedro@codesourcery.com> (raw)
In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA06F3077B@ecamlmw720.eamcs.ericsson.se>

On Tuesday 17 February 2009 16:19:55, Marc Khouzam wrote:

> > I'm thinking that we may need to extend the =thread-selected
> > notification to tell the frontend that there's no thread selected,
> > and perhaps the -thread-info,current-thread-id, output too.
> 
> Your patches does not do this yet, right?

Right.

> > What do you think of all this, am I making sense?  Or, does it
> > sound like "let's hope he comes back to senses soon, for he's
> > not making any"?  :-)
> > 
> > Here's my current patch that implements this, in case you
> > have a stub around that implements multi-process (Hi Marc!).
> 
> I don't think you explicitely said it (or maybe I've read too
> many emails today), but I believe you are suggesting that GDB
> be allowed to be in a state where no thread is selected and
> this state should be handled properly when receiving commands.

Yes.

> 
> I didn't quite understand what responsibility falls on the 
> frontend with this suggestion.  

E.g., I'd like to understand what does eclipse do when it
receives a "=thread-group-exited" notification, and the thread
that eclipse had selected disappeared.  Was it expecting that
GDB changed to another random thread (and emit a =thread-selected
notification), or was it supposed to select another thread itself?
Or, does it also have a state of "no thread selected" in the UI?

> 
> I wanted to try to patch to see what you meant more clearly.
> However, I think this patch applies to HEAD but HEAD does
> not work with my stub yet (the -list-thread-groups --available
> problem).

Oh, bummer.  I thought you'd have some way to manually specify which
process to attach to without going through that listing.

-- 
Pedro Alves


  reply	other threads:[~2009-02-17 16:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-17  3:12 Pedro Alves
2009-02-17 16:33 ` Marc Khouzam
2009-02-17 16:56   ` Pedro Alves [this message]
2009-02-17 18:15     ` Marc Khouzam
2009-02-17 19:08       ` Pedro Alves
2009-02-24 20:23 ` Tom Tromey
2009-03-25 21:46   ` Pedro Alves

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=200902171633.15303.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=marc.khouzam@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