aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.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/arch-utils.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/arch-utils.c')
-rw-r--r--gdb/arch-utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index a805dbc..dfbbc21 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -383,9 +383,9 @@ void
init_frame_pc_default (int fromleaf, struct frame_info *prev)
{
if (fromleaf)
- prev->pc = SAVED_PC_AFTER_CALL (prev->next);
- else if (prev->next != NULL)
- prev->pc = FRAME_SAVED_PC (prev->next);
+ prev->pc = SAVED_PC_AFTER_CALL (get_next_frame (prev));
+ else if (get_next_frame (prev) != NULL)
+ prev->pc = FRAME_SAVED_PC (get_next_frame (prev));
else
prev->pc = read_pc ();
}