forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -3029,10 +3029,12 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
/* We can't use NUM_REGS nor NUM_PSEUDO_REGS here, since that still
|
||||
references the old architecture vector, not the one we are
|
||||
building here. */
|
||||
prologue_cache->saved_regs = (CORE_ADDR *)
|
||||
xcalloc (1, (sizeof (CORE_ADDR)
|
||||
* (gdbarch_num_regs (gdbarch)
|
||||
+ gdbarch_num_pseudo_regs (gdbarch))));
|
||||
{
|
||||
CORE_ADDR *saved_regs = xcalloc (1, (sizeof (CORE_ADDR)
|
||||
* (gdbarch_num_regs (gdbarch)
|
||||
+ gdbarch_num_pseudo_regs (gdbarch))));
|
||||
deprecated_set_frame_saved_regs_hack (prologue_cache, saved_regs);
|
||||
}
|
||||
|
||||
return gdbarch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user