aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-03 18:23:01 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-03 18:23:01 +0000
commit8ccd593be0c584a884733323ce60185de826df46 (patch)
treeb65e12420f9de00c07c0bfea50d433ad5751e75f /gdb/sh-tdep.c
parentfa59d133f4102c9b44d974d5a3b64c5d26aec15b (diff)
downloadgdb-8ccd593be0c584a884733323ce60185de826df46.zip
gdb-8ccd593be0c584a884733323ce60185de826df46.tar.gz
gdb-8ccd593be0c584a884733323ce60185de826df46.tar.bz2
2003-01-03 Andrew Cagney <cagney@redhat.com>
* alpha-tdep.c: Use deprecated_update_frame_base_hack. * avr-tdep.c, cris-tdep.c: Ditto. * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto. * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r--gdb/sh-tdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index 6aaa15f..3b715a8 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -1730,8 +1730,8 @@ sh_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{
/* We need to setup fi->frame here because run_stack_dummy gets it wrong
by assuming it's always FP. */
- fi->frame = deprecated_read_register_dummy (get_frame_pc (fi), fi->frame,
- SP_REGNUM);
+ deprecated_update_frame_base_hack (fi, deprecated_read_register_dummy (get_frame_pc (fi), fi->frame,
+ SP_REGNUM));
fi->extra_info->return_pc = deprecated_read_register_dummy (get_frame_pc (fi),
fi->frame,
PC_REGNUM);
@@ -1762,8 +1762,8 @@ sh64_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{
/* We need to setup fi->frame here because run_stack_dummy gets it wrong
by assuming it's always FP. */
- fi->frame = deprecated_read_register_dummy (get_frame_pc (fi), fi->frame,
- SP_REGNUM);
+ deprecated_update_frame_base_hack (fi, deprecated_read_register_dummy (get_frame_pc (fi), fi->frame,
+ SP_REGNUM));
fi->extra_info->return_pc =
deprecated_read_register_dummy (get_frame_pc (fi), fi->frame, PC_REGNUM);
fi->extra_info->f_offset = -(CALL_DUMMY_LENGTH + 4);