diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-08 19:45:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-08 19:45:23 +0000 |
commit | 7b5849cc3eb5bf8d2c83f940155a112cd4896c30 (patch) | |
tree | d53f8813e8ddbbc56a967983d5b19c9039c14a96 /gdb/mn10300-tdep.c | |
parent | 72a5efb3656011082f98ae614206038e2292306b (diff) | |
download | gdb-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/mn10300-tdep.c')
-rw-r--r-- | gdb/mn10300-tdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index 1921e4b..e1f8617 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -154,8 +154,10 @@ analyze_dummy_frame (CORE_ADDR pc, CORE_ADDR frame) if (dummy == NULL) { struct frame_extra_info *extra_info; + CORE_ADDR *saved_regs; dummy = deprecated_frame_xmalloc (); - dummy->saved_regs = xmalloc (SIZEOF_FRAME_SAVED_REGS); + saved_regs = xmalloc (SIZEOF_FRAME_SAVED_REGS); + deprecated_set_frame_saved_regs (dummy, saved_regs); extra_info = XMALLOC (struct frame_extra_info); deprecated_set_frame_extra_info_hack (dummy, extra_info); } |