diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-07 16:22:29 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-07 16:22:29 +0000 |
commit | b0c6b05c0f5a95e54931f8f616fcdde56a40d57b (patch) | |
tree | 878a5d0f3f887a0b25eb36f59f90ece90211abc3 /gdb/arm-tdep.c | |
parent | a00a19e94cc700d757c2fe07ccec78c46a24cd13 (diff) | |
download | gdb-b0c6b05c0f5a95e54931f8f616fcdde56a40d57b.zip gdb-b0c6b05c0f5a95e54931f8f616fcdde56a40d57b.tar.gz gdb-b0c6b05c0f5a95e54931f8f616fcdde56a40d57b.tar.bz2 |
2003-01-07 Andrew Cagney <cagney@redhat.com>
* arm-tdep.c (arm_init_extra_frame_info): Use
deprecated_update_frame_base_hack.
* xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
* mn10300-tdep.c (analyze_dummy_frame): Ditto.
(fix_frame_pointer): Ditto.
(mn10300_analyze_prologue): Ditto.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index eedd64b..169564f 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -1131,9 +1131,7 @@ arm_init_extra_frame_info (int fromleaf, struct frame_info *fi) /* FIXME: What about thumb mode? */ fi->extra_info->framereg = ARM_SP_REGNUM; - fi->frame = - read_memory_integer (get_frame_saved_regs (fi)[fi->extra_info->framereg], - REGISTER_RAW_SIZE (fi->extra_info->framereg)); + deprecated_update_frame_base_hack (fi, read_memory_integer (get_frame_saved_regs (fi)[fi->extra_info->framereg], REGISTER_RAW_SIZE (fi->extra_info->framereg))); fi->extra_info->framesize = 0; fi->extra_info->frameoffset = 0; @@ -1144,23 +1142,22 @@ arm_init_extra_frame_info (int fromleaf, struct frame_info *fi) if (!fi->next) /* This is the innermost frame? */ - fi->frame = read_register (fi->extra_info->framereg); + deprecated_update_frame_base_hack (fi, read_register (fi->extra_info->framereg)); else if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi->next), 0, 0)) /* Next inner most frame is a dummy, just grab its frame. Dummy frames always have the same FP as their caller. */ - fi->frame = fi->next->frame; + deprecated_update_frame_base_hack (fi, fi->next->frame); else if (fi->extra_info->framereg == ARM_FP_REGNUM || fi->extra_info->framereg == THUMB_FP_REGNUM) { /* not the innermost frame */ /* If we have an FP, the callee saved it. */ if (get_frame_saved_regs (get_next_frame (fi))[fi->extra_info->framereg] != 0) - fi->frame = - read_memory_integer (get_frame_saved_regs (get_next_frame (fi))[fi->extra_info->framereg], 4); + deprecated_update_frame_base_hack (fi, read_memory_integer (get_frame_saved_regs (get_next_frame (fi))[fi->extra_info->framereg], 4)); else if (fromleaf) /* If we were called by a frameless fn. then our frame is still in the frame pointer register on the board... */ - fi->frame = read_fp (); + deprecated_update_frame_base_hack (fi, read_fp ()); } /* Calculate actual addresses of saved registers using offsets |