diff options
author | Daniel Jacobowitz <drow@false.org> | 2008-07-15 18:32:06 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2008-07-15 18:32:06 +0000 |
commit | ef02daa9e63e24a670a7d30166c33eb979ecf580 (patch) | |
tree | 77b9ea563521b8d37ae42af57f5863794a867a18 /gdb/frame.c | |
parent | 96e32df874f88b174fde0c5c7133a4ee50fe2154 (diff) | |
download | gdb-ef02daa9e63e24a670a7d30166c33eb979ecf580.zip gdb-ef02daa9e63e24a670a7d30166c33eb979ecf580.tar.gz gdb-ef02daa9e63e24a670a7d30166c33eb979ecf580.tar.bz2 |
* frame.c (frame_func_unwind): Delete.
(get_frame_func): Do not use it.
* frame.h (frame_func_unwind): Delete prototype.
* hppa-tdep.c (hppa_frame_cache): Update comment.
* rs6000-tdep.c (rs6000_frame_cache): Update comment.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 9f0d07d..9f4aafe 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -461,27 +461,24 @@ frame_pc_unwind (struct frame_info *this_frame) } CORE_ADDR -frame_func_unwind (struct frame_info *fi, enum frame_type this_type) +get_frame_func (struct frame_info *this_frame) { - if (!fi->prev_func.p) + struct frame_info *next_frame = this_frame->next; + + if (!next_frame->prev_func.p) { /* Make certain that this, and not the adjacent, function is found. */ - CORE_ADDR addr_in_block = frame_unwind_address_in_block (fi, this_type); - fi->prev_func.p = 1; - fi->prev_func.addr = get_pc_function_start (addr_in_block); + CORE_ADDR addr_in_block = get_frame_address_in_block (this_frame); + next_frame->prev_func.p = 1; + next_frame->prev_func.addr = get_pc_function_start (addr_in_block); if (frame_debug) fprintf_unfiltered (gdb_stdlog, - "{ frame_func_unwind (fi=%d) -> 0x%s }\n", - fi->level, paddr_nz (fi->prev_func.addr)); + "{ get_frame_func (this_frame=%d) -> 0x%s }\n", + this_frame->level, + paddr_nz (next_frame->prev_func.addr)); } - return fi->prev_func.addr; -} - -CORE_ADDR -get_frame_func (struct frame_info *fi) -{ - return frame_func_unwind (fi->next, get_frame_type (fi)); + return next_frame->prev_func.addr; } static int |