* 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

@ -1,3 +1,9 @@
Fri Jan 13 17:52:57 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
* infcmd.c (signal_command): Accept "signal 0"; the change to not
accept it was accidental. "handle 0" and "info signal 0" remain
illegal, though.
Thu Jan 12 21:23:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
* stabsread.c (read_enum_type): When pending enum symbols are

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)