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.patch33
1 files changed, 17 insertions, 16 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
index eedd94c4d4..0a596b522f 100644
--- a/meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch
+++ b/meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch
@@ -1,7 +1,7 @@
1From 3d6700d38153a0ec8e0800de703a5089a8cd3d2d Mon Sep 17 00:00:00 2001 1From 63df98fa78c8a6e12b40ebdc5c155838d2bf8b5f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 29 Nov 2018 18:00:23 -0800 3Date: Thu, 29 Nov 2018 18:00:23 -0800
4Subject: [PATCH] gdbserver ctrl-c handling 4Subject: [PATCH 11/11] gdbserver ctrl-c handling
5 5
6This problem was created by the upstream commit 78708b7c8c 6This problem was created by the upstream commit 78708b7c8c
7After applying the commit, it will send SIGINT to the process 7After applying the commit, it will send SIGINT to the process
@@ -19,21 +19,22 @@ Author: Josh Gao
19Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com> 19Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
20Signed-off-by: Khem Raj <raj.khem@gmail.com> 20Signed-off-by: Khem Raj <raj.khem@gmail.com>
21--- 21---
22 gdb/gdbserver/linux-low.c | 4 +--- 22 gdbserver/linux-low.cc | 2 +-
23 1 file changed, 1 insertion(+), 3 deletions(-) 23 1 file changed, 1 insertion(+), 1 deletion(-)
24 24
25diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c 25diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc
26index 4255795ea6..762f8bafb6 100644 26index e45493339d2..aabc099b456 100644
27--- a/gdb/gdbserver/linux-low.c 27--- a/gdbserver/linux-low.cc
28+++ b/gdb/gdbserver/linux-low.c 28+++ b/gdbserver/linux-low.cc
29@@ -5904,9 +5904,7 @@ linux_look_up_symbols (void) 29@@ -5714,7 +5714,7 @@ linux_process_target::request_interrupt ()
30 static void
31 linux_request_interrupt (void)
32 { 30 {
33- /* Send a SIGINT to the process group. This acts just like the user 31 /* Send a SIGINT to the process group. This acts just like the user
34- typed a ^C on the controlling terminal. */ 32 typed a ^C on the controlling terminal. */
35- kill (-signal_pid, SIGINT); 33- ::kill (-signal_pid, SIGINT);
36+ kill (signal_pid, SIGINT); 34+ ::kill (signal_pid, SIGINT);
37 } 35 }
38 36
39 /* Copy LEN bytes from inferior's auxiliary vector starting at OFFSET 37 bool
38--
392.29.2
40