This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix kill of processes created by win32_create_inferior
- From: "Hannes Domani via gdb-patches" <gdb-patches at sourceware dot org>
- To: gdb-patches at sourceware dot org
- Date: Sat, 8 Feb 2020 19:25:39 +0100
- Subject: [PATCH] Fix kill of processes created by win32_create_inferior
- References: <20200208182539.5775-1-ssbssa.ref@yahoo.de>
- Reply-to: Hannes Domani <ssbssa at yahoo dot 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