summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb/0010-gdbserver-ctrl-c-handling.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-11-03 18:30:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-07 10:56:26 +0000
commit7bfe8b2f8c5565a057ff903433fce87c569314ca (patch)
tree1485472000363adc4bda920f296621097e446e18 /meta/recipes-devtools/gdb/gdb/0010-gdbserver-ctrl-c-handling.patch
parenteec7affb53e406c72c20d10fc14d730ade1761b0 (diff)
downloadpoky-7bfe8b2f8c5565a057ff903433fce87c569314ca.tar.gz
gdb: Upgrade to 11.1
Drop backported patches Changes are here [1] [1] https://sourceware.org/pipermail/gdb-announce/2021/000129.html (From OE-Core rev: e1c421c0450212201ad9737bf203eac2bfcd37db) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb/0010-gdbserver-ctrl-c-handling.patch')
-rw-r--r--meta/recipes-devtools/gdb/gdb/0010-gdbserver-ctrl-c-handling.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/0010-gdbserver-ctrl-c-handling.patch b/meta/recipes-devtools/gdb/gdb/0010-gdbserver-ctrl-c-handling.patch
new file mode 100644
index 0000000000..cb4744e5dd
--- /dev/null
+++ b/meta/recipes-devtools/gdb/gdb/0010-gdbserver-ctrl-c-handling.patch
@@ -0,0 +1,40 @@
1From d611a68f05c0c86af27bf6beae189a90a946e2e3 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 10/10] 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 gdbserver/linux-low.cc | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc
26index 5c6191d941c..7f7acf6700d 100644
27--- a/gdbserver/linux-low.cc
28+++ b/gdbserver/linux-low.cc
29@@ -5733,7 +5733,7 @@ linux_process_target::request_interrupt ()
30 {
31 /* Send a SIGINT to the process group. This acts just like the user
32 typed a ^C on the controlling terminal. */
33- ::kill (-signal_pid, SIGINT);
34+ ::kill (signal_pid, SIGINT);
35 }
36
37 bool
38--
392.33.1
40