From 242bfc55af827ff13be5ceddd636f3a53fee1c55 Mon Sep 17 00:00:00 2001 From: Fernando Nasser Date: Wed, 23 Feb 2000 15:53:33 +0000 Subject: 2000-02-23 Fernando Nasser * infcmd.c (run_stack_dummy): Do not pop frame on random signal. * valops.c (_initialize_valops): Add command "set unwindonsignal". (hand_function_call): Test for unwind_on_signal and act accordingly. --- gdb/infcmd.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index fb43984..84bc920 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -926,20 +926,12 @@ run_stack_dummy (addr, buffer) discard_cleanups (old_cleanups); + /* We can stop during an inferior call because a signal is received. */ if (stopped_by_random_signal) - { - /* If the inferior execution fails we need to restore our - stack. It is not done by proceed() in this case. */ - /* Pop the empty frame that contains the stack dummy. - POP_FRAME ends with a setting of the current frame, so we - can use that next. */ - POP_FRAME; - return 1; - } + return 1; /* We may also stop prematurely because we hit a breakpoint in the - called routine. We do not pop the frame as the user may wish - to single step or continue from there. */ + called routine. */ if (!stop_stack_dummy) return 2; -- cgit v1.1