diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-01-14 18:07:48 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-01-14 18:07:48 +0000 |
commit | 8248d21bd963b967ddd8e5e05d299d29046a3134 (patch) | |
tree | 440f6d71a9f7026c3ce8a2b53fcab4d51c9bf430 /gdb/infcmd.c | |
parent | 22b1c54a0c198310c9cb5796d779997353c883ac (diff) | |
download | gdb-8248d21bd963b967ddd8e5e05d299d29046a3134.zip gdb-8248d21bd963b967ddd8e5e05d299d29046a3134.tar.gz gdb-8248d21bd963b967ddd8e5e05d299d29046a3134.tar.bz2 |
* infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1,
not stop_pc, to proceed.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |