From 0da84e6eedb831db0a37792a38caa7def1ec80f3 Mon Sep 17 00:00:00 2001 From: Koen Vandeputte Date: Tue, 15 Oct 2024 10:17:02 +0200 Subject: [PATCH] Revert "gdb: Remove MIPS NSIG patch" This reverts commit 2758e1b21c35efbc9dbf40348afb4a73d88af207. --- .../001-gdb-pr14523-mips-signal-number.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/devel/gdb/patches/001-gdb-pr14523-mips-signal-number.patch diff --git a/package/devel/gdb/patches/001-gdb-pr14523-mips-signal-number.patch b/package/devel/gdb/patches/001-gdb-pr14523-mips-signal-number.patch new file mode 100644 index 0000000000..dd6cdbdbc8 --- /dev/null +++ b/package/devel/gdb/patches/001-gdb-pr14523-mips-signal-number.patch @@ -0,0 +1,16 @@ +See http://sourceware.org/bugzilla/show_bug.cgi?id=14523 + +--- a/gdbsupport/signals.cc ++++ b/gdbsupport/signals.cc +@@ -347,6 +347,11 @@ gdb_signal_from_host (int hostsig) + else if (64 <= hostsig && hostsig <= 127) + return (enum gdb_signal) + (hostsig - 64 + (int) GDB_SIGNAL_REALTIME_64); ++ else if (hostsig == 128) ++ /* Some platforms, such as Linux MIPS, have NSIG == 128, in which case ++ signal 128 is the highest realtime signal. There is no constant for ++ that though. */ ++ return GDB_SIGNAL_UNKNOWN; + else + error (_("GDB bug: target.c (gdb_signal_from_host): " + "unrecognized real-time signal")); -- 2.30.2