diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-07 14:51:11 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-07 14:51:11 +0000 |
commit | dc67ff6e47a7ba4b4fec90d2b64dcdd424e25ec3 (patch) | |
tree | 7eadd46dc889fd778ca74b73c068d8ad0d438c13 /gdb/mn10300-tdep.c | |
parent | 1b2b76d4ea8d3b400969f92b092299b3ab3d0a90 (diff) | |
download | gdb-dc67ff6e47a7ba4b4fec90d2b64dcdd424e25ec3.tar.gz |
2003-01-07 Andrew Cagney <cagney@redhat.com>
* xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
extra_info using frame_extra_info_zalloc.
* sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
* sh-tdep.c (sh_init_extra_frame_info): Ditto.
(sh64_init_extra_frame_info): Ditto.
* mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
* s390-tdep.c (s390_init_extra_frame_info): Ditto.
* mips-tdep.c (mips_init_extra_frame_info): Ditto.
* mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
* frv-tdep.c (frv_init_extra_frame_info): Ditto.
* m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
* ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
* h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
* d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
* cris-tdep.c (cris_init_extra_frame_info): Ditto.
* arm-tdep.c (arm_init_extra_frame_info): Ditto.
* alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
* mn10300-tdep.c (analyze_dummy_frame): Use
deprecated_set_frame_extra_info_hack.
* mcore-tdep.c (analyze_dummy_frame): Ditto.
Diffstat (limited to 'gdb/mn10300-tdep.c')
-rw-r--r-- | gdb/mn10300-tdep.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index 4d8e1e73176..92f67cb1c4a 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -153,9 +153,11 @@ analyze_dummy_frame (CORE_ADDR pc, CORE_ADDR frame) static struct frame_info *dummy = NULL; if (dummy == NULL) { + struct frame_extra_info *extra_info; dummy = deprecated_frame_xmalloc (); dummy->saved_regs = xmalloc (SIZEOF_FRAME_SAVED_REGS); - dummy->extra_info = xmalloc (sizeof (struct frame_extra_info)); + extra_info = XMALLOC (struct frame_extra_info); + deprecated_set_frame_extra_info_hack (dummy, extra_info); } dummy->next = NULL; dummy->prev = NULL; @@ -899,8 +901,7 @@ mn10300_init_extra_frame_info (int fromleaf, struct frame_info *fi) deprecated_update_frame_pc_hack (fi, FRAME_SAVED_PC (fi->next)); frame_saved_regs_zalloc (fi); - fi->extra_info = (struct frame_extra_info *) - frame_obstack_alloc (sizeof (struct frame_extra_info)); + frame_extra_info_zalloc (fi, sizeof (struct frame_extra_info)); fi->extra_info->status = 0; fi->extra_info->stack_size = 0; |