diff options
author | Fred Fish <fnf@specifix.com> | 2006-07-31 17:33:30 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 2006-07-31 17:33:30 +0000 |
commit | 35d5d4ee3dee63dffe7bba8ae8b00f9d2679932b (patch) | |
tree | c86d3e301fe3a5e1aae94ce545c521eefb577586 /gdb/arm-tdep.c | |
parent | d103cf611721c0e44394c3cb7dc6d7fe67c5c770 (diff) | |
download | gdb-35d5d4ee3dee63dffe7bba8ae8b00f9d2679932b.zip gdb-35d5d4ee3dee63dffe7bba8ae8b00f9d2679932b.tar.gz gdb-35d5d4ee3dee63dffe7bba8ae8b00f9d2679932b.tar.bz2 |
Reviewed by Daniel Jacobowitz <drow@false.org>
2006-07-31 Fred Fish <fnf@specifix.com>
* arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
instead of calling frame_obstack_zalloc directly.
(arm_make_stub_cache): Ditto.
* frame-unwind.h: Ditto.
* frame.c (create_new_frame): Ditto.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index a36ade5..c5c903b 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -855,7 +855,7 @@ arm_make_prologue_cache (struct frame_info *next_frame) struct arm_prologue_cache *cache; CORE_ADDR unwound_fp; - cache = frame_obstack_zalloc (sizeof (struct arm_prologue_cache)); + cache = FRAME_OBSTACK_ZALLOC (struct arm_prologue_cache); cache->saved_regs = trad_frame_alloc_saved_regs (next_frame); arm_scan_prologue (next_frame, cache); @@ -962,7 +962,7 @@ arm_make_stub_cache (struct frame_info *next_frame) struct arm_prologue_cache *cache; CORE_ADDR unwound_fp; - cache = frame_obstack_zalloc (sizeof (struct arm_prologue_cache)); + cache = FRAME_OBSTACK_ZALLOC (struct arm_prologue_cache); cache->saved_regs = trad_frame_alloc_saved_regs (next_frame); cache->prev_sp = frame_unwind_register_unsigned (next_frame, ARM_SP_REGNUM); |