diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-11-19 14:38:02 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-11-19 14:38:02 +0000 |
commit | 8ca4fd7ad1d28b31111b8bc9b9a2da88a996e0c9 (patch) | |
tree | 446c01c50f22af23d2726aa4e008d1df2796ffa6 /package | |
parent | 3c1642a9e158917c8288133a5238528ffb185b9d (diff) | |
download | mtk-20170518-8ca4fd7ad1d28b31111b8bc9b9a2da88a996e0c9.zip mtk-20170518-8ca4fd7ad1d28b31111b8bc9b9a2da88a996e0c9.tar.gz mtk-20170518-8ca4fd7ad1d28b31111b8bc9b9a2da88a996e0c9.tar.bz2 |
gdb: fix debugging of MIPS(el) applications
GDB previously failed with the following:
root@OpenWrt:/# gdb busybox
[snip]
(gdb) r
Starting program: /bin/busybox
GDB bug: target.c (gdb_signal_from_host): unrecognized real-time signal
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34258
Diffstat (limited to 'package')
-rw-r--r-- | package/devel/gdb/patches/001-gdb-pr14523-mips-signal-number.patch | 16 |
1 files changed, 16 insertions, 0 deletions
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 0000000..c462399 --- /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 +--- +--- gdb-7.5.org/gdb/common/signals.c 2012-05-24 18:51:37.000000000 +0200 ++++ gdb-7.5.org/gdb/common/signals.c 2012-08-29 22:32:07.000000000 +0200 +@@ -346,6 +346,11 @@ + 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")); |