diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-15 22:16:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-15 22:16:25 +0000 |
commit | f18c5a73039533b1d9e2f4f2044ec39627bbf8b4 (patch) | |
tree | bdf028073b5d33bf857ec528aff113fc536f59b8 /gdb/blockframe.c | |
parent | d9285969ae7ac75f10cdd4f6fc3c5ff5335133eb (diff) | |
download | gdb-f18c5a73039533b1d9e2f4f2044ec39627bbf8b4.zip gdb-f18c5a73039533b1d9e2f4f2044ec39627bbf8b4.tar.gz gdb-f18c5a73039533b1d9e2f4f2044ec39627bbf8b4.tar.bz2 |
2002-11-15 Andrew Cagney <ac131313@redhat.com>
* frame.c (frame_pc_unwind): New function.
(frame_saved_regs_pc_unwind): New function.
(frame_register_unwind): Pass unwind_cache instead of
register_unwind_cache.
(set_unwind_by_pc): Add unwind_pc parameter, set.
(create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
(get_prev_frame): Ditto.
* frame.h (frame_pc_unwind_ftype): Declare.
(struct frame_info): Add pc_unwind, pc_unwind_cache_p and
pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
(frame_pc_unwind): Declare.
* dummy-frame.c (dummy_frame_pc_unwind): New function.
(struct dummy_frame): Add comment mentioning that values are for
previous frame.
* dummy-frame.h (dummy_frame_pc_unwind): Declare.
* blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
(generic_file_frame_chain_valid): Ditto.
* stack.c (frame_info): Ditto.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r-- | gdb/blockframe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 1a2a568..3e70b2a 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -49,7 +49,7 @@ int file_frame_chain_valid (CORE_ADDR chain, struct frame_info *thisframe) { return ((chain) != 0 - && !inside_entry_file (FRAME_SAVED_PC (thisframe))); + && !inside_entry_file (frame_pc_unwind (thisframe))); } /* Use the alternate method of avoiding running up off the end of the @@ -753,12 +753,12 @@ pc_in_call_dummy_at_entry_point (CORE_ADDR pc, CORE_ADDR sp, int generic_file_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi) { - if (PC_IN_CALL_DUMMY (FRAME_SAVED_PC (fi), fp, fp)) + if (PC_IN_CALL_DUMMY (frame_pc_unwind (fi), fp, fp)) return 1; /* don't prune CALL_DUMMY frames */ else /* fall back to default algorithm (see frame.h) */ return (fp != 0 && (INNER_THAN (fi->frame, fp) || fi->frame == fp) - && !inside_entry_file (FRAME_SAVED_PC (fi))); + && !inside_entry_file (frame_pc_unwind (fi))); } int |