Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: "Marc Khouzam" <marc.khouzam@ericsson.com>
Cc: gdb@sources.redhat.com
Subject: Re: non-stop and current thread exiting
Date: Thu, 05 Jun 2008 13:27:00 -0000	[thread overview]
Message-ID: <200806051727.19098.vladimir@codesourcery.com> (raw)
In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA0429117A@ecamlmw720.eamcs.ericsson.se>

On Thursday 05 June 2008 17:18:20 Marc Khouzam wrote:
> 
> > What I was thinking if that if you select a thread, and continue it,
> > and the thread exits, it would be more user-friendly to gray this
> > thread, add "(exited)" and then retire it next time we stop. 
> 
> That is an interesting idea.  As all UI ideas, its value will be
> determined in actual usage.  

Of course.

> But it may be nice to have this option. 

Right.

> 
> > You are right that some frontend changes will be required -- but they
> > are required anyway to show the "running" state of the thread, so
> > seems the extra change to show "exited" state does not add much
> > complexity.
> 
> If the output of thread-list-ids is simply augmented with (exited),
> you are right that it would be an easy change for a frontend.

Actually, I plan that in the output of -thread-info, each thread will have a field
'state', that can be either 'stopped' or 'running' or 'exited'. So, a frontend
not wishing to specially display exited threads will ignore threads with 
state=exited.

(Incidentally, we might want to introduce more fine-grained values of state, like
'stepping').

> > > In the case of b) or c) one point that is important for the
> > > a frontend is how GDB will react to prohibited commands
> > > when no thread is selected?  Will a prohibited command
> > > cause an ^error or maybe an empty ^done, or something else?
> > 
> > With (b), you always have some thread selected. When it is actually
> > exited thread, I'd say ^error is the best way. If you send a command
> > and get empty ^done, while you expect some data in the response, it's
> > not very good, I think.
> 
> Sounds right.

OK.

- Volodya


  reply	other threads:[~2008-06-05 13:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-03 21:54 Pedro Alves
2008-06-03 22:01 ` Joel Brobecker
2008-06-04  0:53 ` Marc Khouzam
2008-06-04  4:57   ` Vladimir Prus
2008-06-05 13:18     ` Marc Khouzam
2008-06-05 13:27       ` Vladimir Prus [this message]
2008-06-05 21:23         ` Pawel Piech
2008-06-04 15:10   ` Pawel Piech
2008-06-04 17:08     ` Pedro Alves
2008-06-04 17:38       ` Vladimir Prus
     [not found]         ` <4846F753.7060204@windriver.com>
2008-06-05  5:50           ` Vladimir Prus
2008-06-05 21:23             ` Pawel Piech
2008-06-05 23:48               ` Pawel Piech
2008-06-10 15:14                 ` Pedro Alves
2008-06-04 17:34 ` 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=200806051727.19098.vladimir@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=gdb@sources.redhat.com \
    --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