aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-01-13 22:55:37 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-01-13 22:55:37 +0000
commitb5088d10b50153da5fb0643f960206e1de871906 (patch)
treefd617b765d84543054f92a368ca19e3f100b84e7 /gdb/infcmd.c
parent4f7ce2a5efa1a54c3b5af9e487dfde7b7011021e (diff)
downloadgdb-b5088d10b50153da5fb0643f960206e1de871906.zip
gdb-b5088d10b50153da5fb0643f960206e1de871906.tar.gz
gdb-b5088d10b50153da5fb0643f960206e1de871906.tar.bz2
* infcmd.c (signal_command): Accept "signal 0"; the change to not
accept it was accidental. "handle 0" and "info signal 0" remain illegal, though.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c8
1 files changed, 6 insertions, 2 deletions
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)