mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
* 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user