aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/infcmd.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4acad34..a522e8c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 3e9082b..00c02e8 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)