From: "Hannes Domani via gdb-patches" <gdb-patches@sourceware.org>
To: gdb-patches@sourceware.org
Subject: [PATCH] Fix kill of processes created by win32_create_inferior
Date: Sat, 08 Feb 2020 18:26:00 -0000 [thread overview]
Message-ID: <20200208182539.5775-1-ssbssa@yahoo.de> (raw)
In-Reply-To: <20200208182539.5775-1-ssbssa.ref@yahoo.de>
handle_v_kill uses signal_pid because win32 doesn't support multi-process.
gdbserver/ChangeLog:
2020-02-08 Hannes Domani <ssbssa@yahoo.de>
* win32-low.c (win32_create_inferior): Set signal_pid.
---
gdbserver/win32-low.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gdbserver/win32-low.c b/gdbserver/win32-low.c
index 9d0343788f..557c90d97c 100644
--- a/gdbserver/win32-low.c
+++ b/gdbserver/win32-low.c
@@ -709,6 +709,9 @@ win32_create_inferior (const char *program,
(assuming success). */
cs.last_ptid = win32_wait (ptid_t (current_process_id), &cs.last_status, 0);
+ /* Necessary for handle_v_kill. */
+ signal_pid = current_process_id;
+
return current_process_id;
}
--
2.25.0
next parent reply other threads:[~2020-02-08 18:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200208182539.5775-1-ssbssa.ref@yahoo.de>
2020-02-08 18:26 ` Hannes Domani via gdb-patches [this message]
2020-02-10 22:33 ` Luis Machado
2020-02-12 4:18 ` Simon Marchi
2020-02-12 4:57 ` Simon Marchi
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=20200208182539.5775-1-ssbssa@yahoo.de \
--to=gdb-patches@sourceware.org \
--cc=ssbssa@yahoo.de \
/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