From 63df98fa78c8a6e12b40ebdc5c155838d2bf8b5f Mon Sep 17 00:00:00 2001From: Khem Raj <raj.khem@gmail.com>Date: Thu, 29 Nov 2018 18:00:23 -0800Subject: [PATCH 11/11] gdbserver ctrl-c handlingThis problem was created by the upstream commit 78708b7c8cAfter applying the commit, it will send SIGINT to the processgroup(-signal_pid).But if we use gdbserver send SIGINT, and the attached process is not aprocessgroup leader, then the "kill (-signal_pid, SIGINT)" returns error andfails tointerrupt the attached process.Upstream-Status: Submitted[https://sourceware.org/bugzilla/show_bug.cgi?id=18945]Author: Josh GaoSigned-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>Signed-off-by: Khem Raj <raj.khem@gmail.com>---gdbserver/linux-low.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/gdbserver/linux-low.cc+++ b/gdbserver/linux-low.cc@@ -5496,7 +5496,7 @@ linux_process_target::request_interrupt{
/* Send a SIGINT to the process group. This acts just like the user
typed a ^C on the controlling terminal. */
- ::kill (-signal_pid, SIGINT);+ ::kill (signal_pid, SIGINT);}
bool