summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2006-07-31 17:33:30 +0000
committerFred Fish <fnf@specifix.com>2006-07-31 17:33:30 +0000
commitd4cf0472a2e5118f9baeb3d7b517efed9cd6ba97 (patch)
tree343118a66c41da05c7131838d0bb54eb23013d50 /gdb
parent305dee76320692157afaabf7dbc105b36096fd74 (diff)
downloadgdb-d4cf0472a2e5118f9baeb3d7b517efed9cd6ba97.tar.gz
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')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/arm-tdep.c4
-rw-r--r--gdb/frame-unwind.h4
-rw-r--r--gdb/frame.c2
4 files changed, 13 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bbceaa377ad..73ce8950701 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2006-07-27 Bob Wilson <bob.wilson@acm.org>
* MAINTAINERS (Write After Approval): Add myself.
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index a36ade5f4fd..c5c903b29b0 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);
diff --git a/gdb/frame-unwind.h b/gdb/frame-unwind.h
index cba429cf30d..854aeb6924f 100644
--- a/gdb/frame-unwind.h
+++ b/gdb/frame-unwind.h
@@ -72,7 +72,7 @@ typedef int (frame_sniffer_ftype) (const struct frame_unwind *self,
THIS_PROLOGUE_CACHE can be used to share any prolog analysis data
with the other unwind methods. Memory for that cache should be
- allocated using frame_obstack_zalloc(). */
+ allocated using FRAME_OBSTACK_ZALLOC(). */
typedef void (frame_this_id_ftype) (struct frame_info *next_frame,
void **this_prologue_cache,
@@ -108,7 +108,7 @@ typedef void (frame_this_id_ftype) (struct frame_info *next_frame,
THIS_PROLOGUE_CACHE can be used to share any prolog analysis data
with the other unwind methods. Memory for that cache should be
- allocated using frame_obstack_zalloc(). */
+ allocated using FRAME_OBSTACK_ZALLOC(). */
typedef void (frame_prev_register_ftype) (struct frame_info *next_frame,
void **this_prologue_cache,
diff --git a/gdb/frame.c b/gdb/frame.c
index 64e1baff1eb..19141ff51fd 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -946,7 +946,7 @@ create_new_frame (CORE_ADDR addr, CORE_ADDR pc)
paddr_nz (addr), paddr_nz (pc));
}
- fi = frame_obstack_zalloc (sizeof (struct frame_info));
+ fi = FRAME_OBSTACK_ZALLOC (struct frame_info);
fi->next = create_sentinel_frame (current_regcache);