summaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-08 18:04:06 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-08 18:04:06 +0000
commitae5bd13cc2db8b3901fc9980e5e1273e32fb9941 (patch)
tree33fc54a3515b7e5bf45cc994db1ed01c0fd6b05e /gdb/d10v-tdep.c
parent49e0150c540bb49db39bf824655ba42eaa9b1d64 (diff)
downloadgdb-ae5bd13cc2db8b3901fc9980e5e1273e32fb9941.tar.gz
2003-01-08 Andrew Cagney <cagney@redhat.com>
* d10v-tdep.c (d10v_init_extra_frame_info): Use frame_relative_level.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r--gdb/d10v-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index d3b78673a8d..76b2a6d8022 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -907,7 +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 && get_next_frame (fi) != NULL)
+ if (get_frame_pc (fi) == 0
+ && frame_relative_level (fi) != 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