aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-12-09 00:32:08 +0000
committerAndrew Cagney <cagney@redhat.com>2002-12-09 00:32:08 +0000
commit75e3c1f98d4e0b3d89560b5981ade71c246b504b (patch)
tree97546595050844383dab1b4312e7f0d7530a23e7 /gdb/blockframe.c
parent559747269fed22d80ee96ad0a6e3fa606bf257b8 (diff)
downloadgdb-75e3c1f98d4e0b3d89560b5981ade71c246b504b.zip
gdb-75e3c1f98d4e0b3d89560b5981ade71c246b504b.tar.gz
gdb-75e3c1f98d4e0b3d89560b5981ade71c246b504b.tar.bz2
2002-12-08 Andrew Cagney <ac131313@redhat.com>
* stack.c (frame_info): Use get_prev_frame. * blockframe.c (frame_address_in_block): Ditto. * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto. (rs6000_frameless_function_invocation): Ditto. (rs6000_frame_saved_pc): Ditto. (rs6000_frame_chain): Ditto. * arch-utils.c (init_frame_pc_default): Ditto.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index 84b8cc4..caaecd4 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -213,8 +213,8 @@ frame_address_in_block (struct frame_info *frame)
/* FIXME: cagney/2002-11-10: Should this instead test for
NORMAL_FRAME? A dummy frame (in fact all the abnormal frames)
save the PC value in the block. */
- if (frame->next != 0
- && get_frame_type (frame->next) != SIGTRAMP_FRAME)
+ if (get_next_frame (frame) != 0
+ && get_frame_type (get_next_frame (frame)) != SIGTRAMP_FRAME)
--pc;
return pc;