diff options
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.patch | 39 |
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 @@ | |||
1 | From 3d6700d38153a0ec8e0800de703a5089a8cd3d2d Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 29 Nov 2018 18:00:23 -0800 | ||
4 | Subject: [PATCH] gdbserver ctrl-c handling | ||
5 | |||
6 | This problem was created by the upstream commit 78708b7c8c | ||
7 | After applying the commit, it will send SIGINT to the process | ||
8 | group(-signal_pid). | ||
9 | But if we use gdbserver send SIGINT, and the attached process is not a | ||
10 | process | ||
11 | group leader, then the "kill (-signal_pid, SIGINT)" returns error and | ||
12 | fails to | ||
13 | interrupt the attached process. | ||
14 | |||
15 | Upstream-Status: Submitted | ||
16 | [https://sourceware.org/bugzilla/show_bug.cgi?id=18945] | ||
17 | |||
18 | Author: Josh Gao | ||
19 | Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com> | ||
20 | Signed-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 | |||
25 | diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c | ||
26 | index 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 | ||