Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: "Ulrich Weigand" <uweigand@de.ibm.com>
Subject: Re: [rfc] Preferred thread event reporting: Linux native target
Date: Mon, 18 Aug 2008 17:15:00 -0000	[thread overview]
Message-ID: <200808181815.32875.pedro@codesourcery.com> (raw)
In-Reply-To: <200808152354.32763.pedro@codesourcery.com>

On Friday 15 August 2008 23:54:31, Pedro Alves wrote:

> > and afterwards we're back to the thread
> > the user is looking at, right?
>
> Well, in all-stop, there's nothing doing that currently.  when
> you switch inferior_ptid (in all-stop mode) to handle a
> possible stop, and then you decide you should not stop, there's
> nothing reverting back to the previous thread.  inferior_ptid will
> stay pointing to the last thread you resumed (the hopping thread),
> until you hit another stop event, and context_switch to the thread
> that took it.

Hmmm, I was just taking another look at this, and,
you may be right here.

We'd have also have requested a single-step in the thread we
wanted before detecting a need for a thread hop, so, when we
get to eventually handling that original single-step
finishing, we'd context-switch to it again.  I guess this
would make your change OK.  If not, how does this work then?

-- 
Pedro Alves


  parent reply	other threads:[~2008-08-18 17:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14 20:40 Ulrich Weigand
2008-08-14 21:20 ` Pedro Alves
2008-08-14 21:51   ` Ulrich Weigand
2008-08-15 18:22     ` Michael Snyder
2008-08-18 16:01       ` Ulrich Weigand
2008-08-15 23:28     ` Pedro Alves
2008-08-18 16:23       ` Daniel Jacobowitz
2008-08-18 17:01         ` Ulrich Weigand
2008-08-18 17:04           ` Daniel Jacobowitz
2008-08-18 17:18           ` Pedro Alves
2008-08-18 17:15       ` Pedro Alves [this message]
2008-08-18 18:19         ` Ulrich Weigand

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=200808181815.32875.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=uweigand@de.ibm.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