From b5088d10b50153da5fb0643f960206e1de871906 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 13 Jan 1995 22:55:37 +0000 Subject: [PATCH] * infcmd.c (signal_command): Accept "signal 0"; the change to not accept it was accidental. "handle 0" and "info signal 0" remain illegal, though. --- gdb/ChangeLog | 6 ++++++ gdb/infcmd.c | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4acad341966..a522e8c773c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Fri Jan 13 17:52:57 1995 Jim Kingdon + + * 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 * stabsread.c (read_enum_type): When pending enum symbols are diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 3e9082b9bf0..00c02e8b5c1 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -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) -- 2.30.2