aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2009-01-20 15:33:14 +0000
committerDaniel Jacobowitz <drow@false.org>2009-01-20 15:33:14 +0000
commita12cc160ab21c29ef00ab4e2377e01ae85b9de35 (patch)
tree45b01b887cd8f98b667a2efc7e5defa8452fb2a4 /gdb/infcmd.c
parent6f3b91a62110eaea42cd7df18d6f9293f5d60fa2 (diff)
downloadgdb-a12cc160ab21c29ef00ab4e2377e01ae85b9de35.zip
gdb-a12cc160ab21c29ef00ab4e2377e01ae85b9de35.tar.gz
gdb-a12cc160ab21c29ef00ab4e2377e01ae85b9de35.tar.bz2
PR gdb/9346
* infcmd.c (signal_command): Do not specify a resume PC. testsuite/ PR gdb/9346 * gdb.base/interrupt.c (sigint_handler): New. (main): Install a SIGINT handler if SIGNALS is defined. Exit on error. * gdb.base/interrupt.exp: Define SIGNALS unless gdb,nosignals. Test "signal SIGINT".
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 2cd583c..3696f79 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1145,11 +1145,7 @@ signal_command (char *signum_exp, int from_tty)
}
clear_proceed_status ();
- /* "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);
+ proceed ((CORE_ADDR) -1, oursig, 0);
}
/* Proceed until we reach a different source line with pc greater than