This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob/doc] Fix how to allocate frame memory doco
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 09 Jan 2003 13:47:29 -0500
- Subject: [ob/doc] Fix how to allocate frame memory doco
Hello,
(I'm feeling lucky :-)
The attached fixes the doco stating how to allocate memory for
frame->saved_regs and frame->extra_info.
committed,
Andrew
2003-01-09 Andrew Cagney <ac131313@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Mention
frame_saved_regs_zalloc and frame_extra_info_zalloc as the way to
allocate memory.
Index: gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.114
diff -u -r1.114 gdbint.texinfo
--- gdbint.texinfo 5 Jan 2003 01:38:41 -0000 1.114
+++ gdbint.texinfo 9 Jan 2003 18:45:07 -0000
@@ -3289,8 +3289,7 @@
See @file{frame.h}. Determines the address of all registers in the
current stack frame storing each in @code{frame->saved_regs}. Space for
@code{frame->saved_regs} shall be allocated by
-@code{FRAME_INIT_SAVED_REGS} using either
-@code{frame_saved_regs_zalloc} or @code{frame_obstack_alloc}.
+@code{FRAME_INIT_SAVED_REGS} using @code{frame_saved_regs_zalloc}.
@code{FRAME_FIND_SAVED_REGS} and @code{EXTRA_FRAME_INFO} are deprecated.
@@ -3395,7 +3394,7 @@
@findex INIT_EXTRA_FRAME_INFO
If additional information about the frame is required this should be
stored in @code{frame->extra_info}. Space for @code{frame->extra_info}
-is allocated using @code{frame_obstack_alloc}.
+is allocated using @code{frame_extra_info_zalloc}.
@item DEPRECATED_INIT_FRAME_PC (@var{fromleaf}, @var{prev})
@findex DEPRECATED_INIT_FRAME_PC