summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch')
-rw-r--r--meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch b/meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch
new file mode 100644
index 0000000000..eedd94c4d4
--- /dev/null
+++ b/meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch
@@ -0,0 +1,39 @@
1From 3d6700d38153a0ec8e0800de703a5089a8cd3d2d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 29 Nov 2018 18:00:23 -0800
4Subject: [PATCH] gdbserver ctrl-c handling
5
6This problem was created by the upstream commit 78708b7c8c
7After applying the commit, it will send SIGINT to the process
8group(-signal_pid).
9But if we use gdbserver send SIGINT, and the attached process is not a
10process
11group leader, then the "kill (-signal_pid, SIGINT)" returns error and
12fails to
13interrupt the attached process.
14
15Upstream-Status: Submitted
16[https://sourceware.org/bugzilla/show_bug.cgi?id=18945]
17
18Author: Josh Gao
19Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
20Signed-off-by: Khem Raj <raj.khem@gmail.com>
21---
22 gdb/gdbserver/linux-low.c | 4 +---
23 1 file changed, 1 insertion(+), 3 deletions(-)
24
25diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
26index 4255795ea6..762f8bafb6 100644
27--- a/gdb/gdbserver/linux-low.c
28+++ b/gdb/gdbserver/linux-low.c
29@@ -5904,9 +5904,7 @@ linux_look_up_symbols (void)
30 static void
31 linux_request_interrupt (void)
32 {
33- /* Send a SIGINT to the process group. This acts just like the user
34- typed a ^C on the controlling terminal. */
35- kill (-signal_pid, SIGINT);
36+ kill (signal_pid, SIGINT);
37 }
38
39 /* Copy LEN bytes from inferior's auxiliary vector starting at OFFSET