diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-09 18:53:21 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-09 18:53:21 +0000 |
commit | 479ab5a00d3aa5dba754b8231a4c9e0b03d33ded (patch) | |
tree | 67a84f3a481ea046e7009095ba9c15d0b8784325 /gdb/frame.h | |
parent | 696d5a5b8440861f2e53015652b37388ef6d4283 (diff) | |
download | gdb-479ab5a00d3aa5dba754b8231a4c9e0b03d33ded.zip gdb-479ab5a00d3aa5dba754b8231a4c9e0b03d33ded.tar.gz gdb-479ab5a00d3aa5dba754b8231a4c9e0b03d33ded.tar.bz2 |
2003-01-09 Andrew Cagney <ac131313@redhat.com>
* frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
Update comments.
* frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
(frame_saved_regs_zalloc): Update.
(frame_saved_regs_register_unwind): Update.
(create_new_frame): Update.
(get_prev_frame): Update.
(frame_extra_info_zalloc): Update.
(deprecated_get_frame_saved_regs): Update.
* dwarf2cfi.c (cfi_init_extra_frame_info): Update.
* cris-tdep.c: Update comment.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r-- | gdb/frame.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index f32021c..fbe6275 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -310,7 +310,7 @@ extern struct frame_id frame_id_unwind (struct frame_info *frame); UNWIND_CACHE is provided as mechanism for implementing a per-frame local cache. It's initial value being NULL. Memory for that cache - should be allocated using frame_obstack_alloc(). + should be allocated using frame_obstack_zalloc(). Register window architectures (eg SPARC) should note that REGNUM identifies the register for the previous frame. For instance, a @@ -413,7 +413,7 @@ struct frame_info /* Anything extra for this structure that may have been defined in the machine dependent files. */ - /* Allocated by frame_obstack_alloc () which is called / + /* Allocated by frame_extra_info_zalloc () which is called / initialized by INIT_EXTRA_FRAME_INFO */ struct frame_extra_info *extra_info; @@ -472,7 +472,11 @@ enum print_what #define SIZEOF_FRAME_SAVED_REGS \ (sizeof (CORE_ADDR) * (NUM_REGS+NUM_PSEUDO_REGS)) -extern void *frame_obstack_alloc (unsigned long size); +/* Allocate zero initialized memory from the frame cache obstack. + Appendices to the frame info (such as the unwind cache) should + allocate memory using this method. */ + +extern void *frame_obstack_zalloc (unsigned long size); /* If FRAME_CHAIN_VALID returns zero it means that the given frame is the outermost one and has no caller. */ |