aboutsummaryrefslogtreecommitdiff
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
commitaab3ea25c55e8ecbac34d8004db74e9ecb8b2373 (patch)
treed84b9358f4a79dda53a26abcf0f81569c9bd9411
parentda50a4b7b334f522b1fcee065102b4038cf17033 (diff)
downloadgdb-aab3ea25c55e8ecbac34d8004db74e9ecb8b2373.zip
gdb-aab3ea25c55e8ecbac34d8004db74e9ecb8b2373.tar.gz
gdb-aab3ea25c55e8ecbac34d8004db74e9ecb8b2373.tar.bz2
2003-01-08 Andrew Cagney <cagney@redhat.com>
* d10v-tdep.c (d10v_init_extra_frame_info): Use frame_relative_level.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/d10v-tdep.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index acbe8e6..5a000fe 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2003-01-08 Andrew Cagney <cagney@redhat.com>
+ * d10v-tdep.c (d10v_init_extra_frame_info): Use
+ frame_relative_level.
+
* alpha-tdep.c: Use get_frame_extra_info.
* arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
* h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index d3b7867..76b2a6d 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