aboutsummaryrefslogtreecommitdiff
path: root/package/devel/gdb/patches/130-gdb-ctrl-c.patch
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2023-11-07 20:55:58 +0200
committerNick Hainke <vincent@systemli.org>2023-11-10 08:39:38 +0100
commitf79de8ec6576fdb0949d424126f67d440a95f44a (patch)
tree371cfabc4696f22a27a323f06cfa39d5cc745d40 /package/devel/gdb/patches/130-gdb-ctrl-c.patch
parenta7a94bc4f035dc4e82e01d19e6b6c2bb85d6c8bc (diff)
gdb: Update to 13.2
Update the devel/gdb package to version 13.2 * Remove the upstreamed patch 001-Add-support-for-readline-8.2.patch * Adjust 130-gdb-ctrl-c.patch to upstream changes Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'package/devel/gdb/patches/130-gdb-ctrl-c.patch')
-rw-r--r--package/devel/gdb/patches/130-gdb-ctrl-c.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/package/devel/gdb/patches/130-gdb-ctrl-c.patch b/package/devel/gdb/patches/130-gdb-ctrl-c.patch
index f793a71cae..8650ce844c 100644
--- a/package/devel/gdb/patches/130-gdb-ctrl-c.patch
+++ b/package/devel/gdb/patches/130-gdb-ctrl-c.patch
@@ -24,12 +24,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/gdbserver/linux-low.cc
+++ b/gdbserver/linux-low.cc
-@@ -5496,7 +5496,7 @@ linux_process_target::request_interrupt
+@@ -5467,7 +5467,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
+- int res = ::kill (-signal_pid, SIGINT);
++ int res = ::kill (signal_pid, SIGINT);
+ if (res == -1)
+ warning (_("Sending SIGINT to process group of pid %ld failed: %s"),
+ signal_pid, safe_strerror (errno));