summaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-12-22 21:45:38 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-12-22 21:45:38 +0000
commita89794ecfa23772332aa3af0bd4c805636314f60 (patch)
treefb36064dbed25c94690f1a090448050d7de31754 /gdb/blockframe.c
parent581a81d2bed63e5910a0715d6bf685cfc4746bc6 (diff)
downloadgdb-a89794ecfa23772332aa3af0bd4c805636314f60.tar.gz
import gdb-1999-12-21 snapshot
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index 6ce753ef02e..d00f5c23fc6 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -1229,19 +1229,18 @@ generic_save_dummy_frame_tos (sp)
dummy_frame_stack->top = sp;
}
-/* Function: pop_frame
- Restore the machine state from either the saved dummy stack or a
+/* Restore the machine state from either the saved dummy stack or a
real stack frame. */
void
-generic_pop_current_frame (pop)
- void (*pop) (struct frame_info * frame);
+generic_pop_current_frame (void (*popper) (struct frame_info * frame))
{
struct frame_info *frame = get_current_frame ();
+
if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame))
generic_pop_dummy_frame ();
else
- pop (frame);
+ (*popper) (frame);
}
/* Function: pop_dummy_frame