From: Luis Machado <luis.machado@linaro.org>
To: Hannes Domani <ssbssa@yahoo.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Fix kill of processes created by win32_create_inferior
Date: Mon, 10 Feb 2020 22:33:00 -0000 [thread overview]
Message-ID: <c5f514e1-65f4-e41a-e5a4-2ead6467b859@linaro.org> (raw)
In-Reply-To: <20200208182539.5775-1-ssbssa@yahoo.de>
On 2/8/20 3:25 PM, Hannes Domani via gdb-patches wrote:
> 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;
> }
>
>
Thanks. This one looks OK to me.
It would be nice to augment the description with what situation this
fixes. I suppose it doesn't kill the process properly?
next prev parent reply other threads:[~2020-02-10 22:33 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
2020-02-10 22:33 ` Luis Machado [this message]
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=c5f514e1-65f4-e41a-e5a4-2ead6467b859@linaro.org \
--to=luis.machado@linaro.org \
--cc=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