* stack.c (return_command): Pop dummy frame if we just returned from
a stop in a call dummy.
This commit is contained in:
parent
cf919dfdd7
commit
1a2aab69f1
2 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue