Skip to content

Commit

Permalink
gdb-7.6.x:
Browse files Browse the repository at this point in the history
 * add patch fixing (actually workarounding) "GDB bug: target.c (gdb_signal_from_host): unrecognized real-time signal"-problem
 * refs [https://sourceware.org/bugzilla/show_bug.cgi?id=14523 gdb-bug-14523], patch taken from OpenWrt


git-svn-id: file:///var/svn/freetz/trunk@11569 149334a1-2f27-0410-a3b9-fc62619ac1e6
  • Loading branch information
er13 committed Jan 18, 2014
1 parent 61a4ee8 commit 22c74b5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions make/gdb/patches/7.6.2/001-gdb-pr14523-mips-signal-number.patch
@@ -0,0 +1,16 @@
See http://sourceware.org/bugzilla/show_bug.cgi?id=14523

--- gdb/common/signals.c
+++ gdb/common/signals.c
@@ -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"));

0 comments on commit 22c74b5

Please sign in to comment.