From 8248d21bd963b967ddd8e5e05d299d29046a3134 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sat, 14 Jan 1995 18:07:48 +0000 Subject: [PATCH] * infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1, not stop_pc, to proceed. --- gdb/ChangeLog | 3 +++ gdb/infcmd.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4757d43..7d03819 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Sat Jan 14 11:18:11 1995 Jim Kingdon + * infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1, + not stop_pc, to proceed. + * eval.c (evaluate_subexp): Clear expect_type except for C++ and CHILL. Fri Jan 13 17:52:57 1995 Jim Kingdon diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 00c02e8..0ca4d56 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -492,7 +492,11 @@ signal_command (signum_exp, from_tty) } clear_proceed_status (); - proceed (stop_pc, oursig, 0); + /* "signal 0" should not get stuck if we are stopped at a breakpoint. + FIXME: Neither should "signal foo" but when I tried passing + (CORE_ADDR)-1 unconditionally I got a testsuite failure which I haven't + tried to track down yet. */ + proceed (oursig == TARGET_SIGNAL_0 ? (CORE_ADDR) -1 : stop_pc, oursig, 0); } /* Call breakpoint_auto_delete on the current contents of the bpstat -- 2.7.4