summaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2008-07-15 18:32:06 +0000
committerDaniel Jacobowitz <dan@debian.org>2008-07-15 18:32:06 +0000
commit0b3c2a5ea7b975d6e3c4d0541d549a0bc4027e07 (patch)
tree48cd9e7817cab0fd1cc4bffbf9d62ca84a9f8aed /gdb/frame.c
parent6b4cc093fedeff925d16d47bd33e02f63b00d562 (diff)
downloadgdb-0b3c2a5ea7b975d6e3c4d0541d549a0bc4027e07.tar.gz
* 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.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 9f0d07d6b4f..9f4aafe36aa 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