mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:34:04 +02:00
[package] 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34258 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3437fba6b0
commit
0da32f13db
@ -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"));
|
Loading…
Reference in New Issue
Block a user