summaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorPeter Schauer <pes@regent.e-technik.tu-muenchen.de>2000-11-06 20:25:36 +0000
committerPeter Schauer <pes@regent.e-technik.tu-muenchen.de>2000-11-06 20:25:36 +0000
commit1a77bcde4bd34b53b8795a395da02b94a6f555c1 (patch)
tree8374da4b27c5c87d175b7ee12c6a09f7ca8faab7 /gdb/stack.c
parenteb9a70a0320e1f10dc5d25522083cb8c6c8a763d (diff)
downloadgdb-1a77bcde4bd34b53b8795a395da02b94a6f555c1.tar.gz
* stack.c (return_command): Pop dummy frame if we just returned from
a stop in a call dummy.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 859627671e1..e0f38e27cf9 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)