2002-01-13 Andrew Cagney From Petr Ledvina : * signals.c (target_signal_to_name): Verify that SIG is within the bounds of the signals array. Index: signals.c =================================================================== RCS file: /cvs/src/src/gdb/signals.c,v retrieving revision 1.1 diff -p -r1.1 signals.c *** signals.c 2001/07/19 18:09:11 1.1 --- signals.c 2002/01/13 21:04:30 *************** target_signal_to_name (enum target_signa *** 214,220 **** /* 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; } /* Given a name, return its signal. */ --- 214,223 ---- /* I think the code which prints this will always print it along with the string, so no need to be verbose. */ return "?"; ! 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. */