From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sources.redhat.com
Subject: [patch/gdbserver] Update current inferior when using vCont
Date: Sat, 28 Feb 2004 18:24:00 -0000 [thread overview]
Message-ID: <20040228182439.GA17159@nevyn.them.org> (raw)
Extensive testing on a software-single-step target using vCont turned up a
problem that testing on x86 didn't - not surprising, since gdbserver is
stressed much harder in this case. By not calling set_desired_inferior after
setting cont_thread, we could end up sending signals to the wrong thread on
an interrupt from the client.
Will commit in a bit.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2004-02-28 Daniel Jacobowitz <drow@mvista.com>
* server.c (handle_v_cont): Call set_desired_inferior.
Index: gdb/gdbserver/server.c
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/gdb/gdbserver/server.c,v
retrieving revision 1.16
diff -u -p -r1.16 server.c
--- gdb/gdbserver/server.c 13 Oct 2003 16:17:21 -0000 1.16
+++ gdb/gdbserver/server.c 28 Feb 2004 03:06:13 -0000
@@ -213,6 +215,7 @@ handle_v_cont (char *own_buf, char *stat
cont_thread = resume_info[0].thread;
else
cont_thread = -1;
+ set_desired_inferior (0);
(*the_target->resume) (resume_info);
next reply other threads:[~2004-02-28 18:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-28 18:24 Daniel Jacobowitz [this message]
2004-02-29 16:49 ` Daniel Jacobowitz
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=20040228182439.GA17159@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.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