gdb: update to version 7.12.1, fix glibc 2.25 build issues
[openwrt/staging/mkresin.git] / package / devel / gdb / patches / 001-gdb-pr14523-mips-signal-number.patch
1 See http://sourceware.org/bugzilla/show_bug.cgi?id=14523
2 ---
3 --- a/gdb/common/signals.c
4 +++ b/gdb/common/signals.c
5 @@ -348,6 +348,11 @@ gdb_signal_from_host (int hostsig)
6 else if (64 <= hostsig && hostsig <= 127)
7 return (enum gdb_signal)
8 (hostsig - 64 + (int) GDB_SIGNAL_REALTIME_64);
9 + else if (hostsig == 128)
10 + /* Some platforms, such as Linux MIPS, have NSIG == 128, in which case
11 + signal 128 is the highest realtime signal. There is no constant for
12 + that though. */
13 + return GDB_SIGNAL_UNKNOWN;
14 else
15 error (_("GDB bug: target.c (gdb_signal_from_host): "
16 "unrecognized real-time signal"));