001-gdb-pr14523-mips-signal-number.patch 635 B

12345678910111213141516
  1. See http://sourceware.org/bugzilla/show_bug.cgi?id=14523
  2. --- a/gdb/common/signals.c
  3. +++ b/gdb/common/signals.c
  4. @@ -348,6 +348,11 @@ gdb_signal_from_host (int hostsig)
  5. else if (64 <= hostsig && hostsig <= 127)
  6. return (enum gdb_signal)
  7. (hostsig - 64 + (int) GDB_SIGNAL_REALTIME_64);
  8. + else if (hostsig == 128)
  9. + /* Some platforms, such as Linux MIPS, have NSIG == 128, in which case
  10. + signal 128 is the highest realtime signal. There is no constant for
  11. + that though. */
  12. + return GDB_SIGNAL_UNKNOWN;
  13. else
  14. error (_("GDB bug: target.c (gdb_signal_from_host): "
  15. "unrecognized real-time signal"));