diff options
author | Jason Molenda <jsm@bugshack.cygnus.com> | 1999-12-22 21:45:00 +0000 |
---|---|---|
committer | Jason Molenda <jsm@bugshack.cygnus.com> | 1999-12-22 21:45:00 +0000 |
commit | 2800c5dc333169fb3e1d2bed6f96912ec8cf982c (patch) | |
tree | ea29215395ff424fd4060ad305c1b84ae3f3f90c /gdb/blockframe.c | |
parent | 25f56f63638eebc41a9b95296eebb40563ea0db5 (diff) | |
download | gdb-2800c5dc333169fb3e1d2bed6f96912ec8cf982c.tar.gz |
import gdb-1999-12-21 snapshotgdb-1999-12-21
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r-- | gdb/blockframe.c | 9 |
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 |