From 11c02a10e2ffb85de364eb178f28209885b82231 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 8 Jan 2003 15:56:38 +0000 Subject: 2003-01-08 Andrew Cagney * alpha-tdep.c: Use get_next_frame. * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto. * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto. * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto. * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto. * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto. * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto. * xstormy16-tdep.c: Ditto. --- gdb/d10v-tdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/d10v-tdep.c') diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index 48139d1..f4bb749 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -907,8 +907,8 @@ d10v_init_extra_frame_info (int fromleaf, struct frame_info *fi) /* If get_frame_pc (fi) is zero, but this is not the outermost frame, then let's snatch the return_pc from the callee, so that DEPRECATED_PC_IN_CALL_DUMMY will work. */ - if (get_frame_pc (fi) == 0 && fi->level != 0 && fi->next != NULL) - deprecated_update_frame_pc_hack (fi, d10v_frame_saved_pc (fi->next)); + if (get_frame_pc (fi) == 0 && fi->level != 0 && get_next_frame (fi) != NULL) + deprecated_update_frame_pc_hack (fi, d10v_frame_saved_pc (get_next_frame (fi))); /* The call dummy doesn't save any registers on the stack, so we can return now. */ -- cgit v1.1