Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@specifix.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb@sourceware.org, Marc Khouzam <marc.khouzam@ericsson.com>
Subject: Re: non-stop and current thread exiting
Date: Wed, 04 Jun 2008 17:34:00 -0000	[thread overview]
Message-ID: <1212600848.3601.336.camel@localhost.localdomain> (raw)
In-Reply-To: <200806032253.39575.pedro@codesourcery.com>

On Tue, 2008-06-03 at 22:53 +0100, Pedro Alves wrote:

> I see three possibilities to solve issues like these.
> 
> a) Have GDB switch to an arbitrary thread when the
>   current thread is gone.
> 
> b) Leave the currently selected dead thread in the thread
>   list, tag it as dead.  Prohibit most commands but "thread"
>   and "info threads" in this situation.  Get rid of the dead
>   thread as soon as the user/frontend switches to another
>   thread.

[...]

> c) Allow deleting the current thread anyway, and have it not
>    listed in the thread list.  Do some internal magic, to point
>    the current thread at some "already exited" special thread.
>    Prohibit most commands but "thread" and "info threads" in
>    this situation.  Show something like this or similar
>    in "info threads"
> 
>  (gdb) info threads
>    2 Thread 0xf7d5bb90 (LWP 8506)  (running)
>    1 Thread 0xf7d5c6b0 (LWP 8503)  (running)
> 
>    No selected thread.

I kind-of like "no selected thread", and then you could 
"prohibit most commands" based on those that depend on 
having a selected thread.

But my preference is not strong, and I can see the 
desire to have the previously selected thread displayed
temporarily even though it is dead.

Michael




      parent reply	other threads:[~2008-06-04 17:34 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
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 [this message]

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=1212600848.3601.336.camel@localhost.localdomain \
    --to=msnyder@specifix.com \
    --cc=gdb@sourceware.org \
    --cc=marc.khouzam@ericsson.com \
    --cc=pedro@codesourcery.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