diff options
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 6 |
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 (); } |