From 1a2aab69f1955c55a2495dce94deef22162d3959 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Mon, 6 Nov 2000 20:25:36 +0000 Subject: * stack.c (return_command): Pop dummy frame if we just returned from a stop in a call dummy. --- gdb/stack.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/stack.c') diff --git a/gdb/stack.c b/gdb/stack.c index 8596276..e0f38e2 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1892,6 +1892,12 @@ return_command (char *retval_exp, int from_tty) if (retval_exp) set_return_value (return_value); + /* If we are at the end of a call dummy now, pop the dummy frame too. */ + + if (CALL_DUMMY_HAS_COMPLETED (read_pc(), read_sp (), + FRAME_FP (get_current_frame ()))) + POP_FRAME; + /* If interactive, print the frame that is now current. */ if (from_tty) -- cgit v1.1