* signals.c (target_signal_to_name): Verify that SIG is within the
bounds of the signals array.
+2002-01-13 Andrew Cagney <ac131313@redhat.com>
+
+ From Petr Ledvina <ledvinap@kae.zcu.cz>:
+ * signals.c (target_signal_to_name): Verify that SIG is within the
+ bounds of the signals array.
+
2002-01-13 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Remove arm-coff and arm-pe from target list.
/* I think the code which prints this will always print it along with
the string, so no need to be verbose. */
return "?";
- return signals[sig].name;
+ else if ((sig >= TARGET_SIGNAL_FIRST) && (sig <= TARGET_SIGNAL_LAST))
+ return signals[sig].name;
+ else
+ return signals[sig].name;
}
/* Given a name, return its signal. */