aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-08 19:45:23 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-08 19:45:23 +0000
commit7b5849cc3eb5bf8d2c83f940155a112cd4896c30 (patch)
treed53f8813e8ddbbc56a967983d5b19c9039c14a96 /gdb/sh-tdep.c
parent72a5efb3656011082f98ae614206038e2292306b (diff)
downloadgdb-7b5849cc3eb5bf8d2c83f940155a112cd4896c30.zip
gdb-7b5849cc3eb5bf8d2c83f940155a112cd4896c30.tar.gz
gdb-7b5849cc3eb5bf8d2c83f940155a112cd4896c30.tar.bz2
2003-01-08 Andrew Cagney <cagney@redhat.com>
* cris-tdep.c (cris_frame_init_saved_regs): Use get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a saved_regs buffer. * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto. (sh64_nofp_frame_init_saved_regs): Ditto. (sh_fp_frame_init_saved_regs): Ditto. * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack. * mips-tdep.c (mips_init_extra_frame_info): Ditto. * mcore-tdep.c (analyze_dummy_frame): Ditto. * mn10300-tdep.c (analyze_dummy_frame): Ditto.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r--gdb/sh-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index cb7059b..08281ba 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -1078,7 +1078,7 @@ sh_nofp_frame_init_saved_regs (struct frame_info *fi)
/* DANGER! This is ONLY going to work if the char buffer format of
the saved registers is byte-for-byte identical to the
CORE_ADDR regs[NUM_REGS] format used by struct frame_saved_regs! */
- memcpy (fi->saved_regs, dummy_regs, sizeof (fi->saved_regs));
+ memcpy (get_frame_saved_regs (fi), dummy_regs, SIZEOF_FRAME_SAVED_REGS);
return;
}
@@ -1418,7 +1418,7 @@ sh64_nofp_frame_init_saved_regs (struct frame_info *fi)
/* DANGER! This is ONLY going to work if the char buffer format of
the saved registers is byte-for-byte identical to the
CORE_ADDR regs[NUM_REGS] format used by struct frame_saved_regs! */
- memcpy (fi->saved_regs, dummy_regs, sizeof (fi->saved_regs));
+ memcpy (get_frame_saved_regs (fi), dummy_regs, SIZEOF_FRAME_SAVED_REGS);
return;
}
@@ -1619,7 +1619,7 @@ sh_fp_frame_init_saved_regs (struct frame_info *fi)
/* DANGER! This is ONLY going to work if the char buffer format of
the saved registers is byte-for-byte identical to the
CORE_ADDR regs[NUM_REGS] format used by struct frame_saved_regs! */
- memcpy (fi->saved_regs, dummy_regs, sizeof (fi->saved_regs));
+ memcpy (get_frame_saved_regs (fi), dummy_regs, SIZEOF_FRAME_SAVED_REGS);
return;
}