From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Cc: msnyder@redhat.com, kettenis@gnu.org
Subject: Re: RFA: lin-lwp bug with software-single-step or schedlock
Date: Thu, 31 Oct 2002 13:01:00 -0000 [thread overview]
Message-ID: <20021031210140.GA25922@nevyn.them.org> (raw)
In-Reply-To: <20021023042615.GA6358@nevyn.them.org>
On Wed, Oct 23, 2002 at 12:26:15AM -0400, Daniel Jacobowitz wrote:
> 2002-10-23 Daniel Jacobowitz <drow@mvista.com>
>
> * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
Based on Mark's comments, I've committed this. Later we should hash
out exactly when which thread should get which signal, and write
testcases for that...
> Index: lin-lwp.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/lin-lwp.c,v
> retrieving revision 1.35
> diff -u -p -r1.35 lin-lwp.c
> --- lin-lwp.c 27 Aug 2002 22:37:06 -0000 1.35
> +++ lin-lwp.c 23 Oct 2002 04:23:13 -0000
> @@ -579,11 +579,8 @@ lin_lwp_resume (ptid_t ptid, int step, e
> struct lwp_info *lp;
> int resume_all;
>
> - /* Apparently the interpretation of PID is dependent on STEP: If
> - STEP is non-zero, a specific PID means `step only this process
> - id'. But if STEP is zero, then PID means `continue *all*
> - processes, but give the signal only to this one'. */
> - resume_all = (PIDGET (ptid) == -1) || !step;
> + /* A specific PTID means `step only this process id'. */
> + resume_all = (PIDGET (ptid) == -1);
>
> if (resume_all)
> iterate_over_lwps (resume_set_callback, NULL);
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2002-10-31 21:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-22 21:25 Daniel Jacobowitz
2002-10-22 22:35 ` Andrew Cagney
2002-10-23 7:40 ` Daniel Jacobowitz
2002-10-23 14:13 ` Mark Kettenis
2002-10-23 14:44 ` Michael Snyder
2002-10-23 14:55 ` Daniel Jacobowitz
2002-10-31 13:01 ` Daniel Jacobowitz [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=20021031210140.GA25922@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@gnu.org \
--cc=msnyder@redhat.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