aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2000-02-23 15:53:33 +0000
committerFernando Nasser <fnasser@redhat.com>2000-02-23 15:53:33 +0000
commit242bfc55af827ff13be5ceddd636f3a53fee1c55 (patch)
treea877521c0b6c69cbb720d2180fee82ceb6ebf164 /gdb/infcmd.c
parent5b93d8bb517c1f5715435dcf627a8642f557ddb2 (diff)
downloadfsf-binutils-gdb-242bfc55af827ff13be5ceddd636f3a53fee1c55.zip
fsf-binutils-gdb-242bfc55af827ff13be5ceddd636f3a53fee1c55.tar.gz
fsf-binutils-gdb-242bfc55af827ff13be5ceddd636f3a53fee1c55.tar.bz2
2000-02-23 Fernando Nasser <fnasser@cygnus.com>
* 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.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c14
1 files changed, 3 insertions, 11 deletions
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;