Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: "Ulrich Weigand" <uweigand@de.ibm.com>
Cc: gdb-patches@sourceware.org,  drow@false.org
Subject: Re: [rfc] Fix PR 2250 - multithreaded single-step problems in all-stop mode
Date: Mon, 17 Nov 2008 23:36:00 -0000	[thread overview]
Message-ID: <200811171948.33905.pedro@codesourcery.com> (raw)
In-Reply-To: <200811171856.mAHIuMHs011334@d12av02.megacenter.de.ibm.com>

On Monday 17 November 2008 18:56:22, Ulrich Weigand wrote:

> B.t.w. what about init_execution_control_state?  This seems to
> be nowhere called ...

Hmm, good catch.  It seems that got left behind when I pulled
all that was context-switched out of struct execution_control_state
(which is now a bit mis-named).

There used to be a call to init_execution_control_state in
wait_for_inferior around where now there's a memset, so we're
not missing anything (clearing ecs->random_signal).

I don't think there's any reason to keep random_signal
untouched across handle_inferior_event invocations in the while (1)
loop in wait_for_inferior ? --- handle_inferior_event seems
to set or clear it itself before relying on its value, but I wouldn't
be that surprised there's a weird twisted code path where that isn't
happening, and we could be reading a random_signal from a previous stop.
Maybe moving the memset to inside the while (1) loop in
wait_for_inferior would make things a bit clearer (if my reasoning
about random_signal not being needed across events is correct).

-- 
Pedro Alves


  reply	other threads:[~2008-11-17 19:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-15 16:42 Ulrich Weigand
2008-11-15 21:30 ` Pedro Alves
2008-11-17 22:19   ` Ulrich Weigand
2008-11-17 23:36     ` Pedro Alves [this message]
2008-11-18  1:43       ` Ulrich Weigand
2008-11-18  3:36         ` Pedro Alves
2008-12-07  0:16           ` [rfc] [0/7] infrun cleanup Ulrich Weigand
2008-12-07  1:29             ` Pedro Alves
2008-12-07 17:12               ` Pedro Alves
2008-12-07 18:20                 ` Ulrich Weigand
2008-12-07 19:16                   ` 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=200811171948.33905.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=drow@false.org \
    --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