* infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1,
authorJim Kingdon <jkingdon@engr.sgi.com>
Sat, 14 Jan 1995 18:07:48 +0000 (18:07 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sat, 14 Jan 1995 18:07:48 +0000 (18:07 +0000)
not stop_pc, to proceed.

gdb/ChangeLog
gdb/infcmd.c

index 4757d43..7d03819 100644 (file)
@@ -1,5 +1,8 @@
 Sat Jan 14 11:18:11 1995  Jim Kingdon  <kingdon@lioth.cygnus.com>
 
+       * 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  <kingdon@lioth.cygnus.com>
index 00c02e8..0ca4d56 100644 (file)
@@ -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