* infcmd.c (signal_command): Accept "signal 0"; the change to not

accept it was accidental.  "handle 0" and "info signal 0" remain
	illegal, though.
This commit is contained in:
Jim Kingdon
1995-01-13 22:55:37 +00:00
parent 4f7ce2a5ef
commit b5088d10b5
2 changed files with 12 additions and 2 deletions

View File

@@ -474,8 +474,12 @@ signal_command (signum_exp, from_tty)
if (oursig == TARGET_SIGNAL_UNKNOWN)
{
/* No, try numeric. */
oursig =
target_signal_from_command (parse_and_eval_address (signum_exp));
int num = parse_and_eval_address (signum_exp);
if (num == 0)
oursig = TARGET_SIGNAL_0;
else
oursig = target_signal_from_command (num);
}
if (from_tty)