diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-12-13 16:11:32 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-12-13 16:11:32 +0000 |
commit | 2c517d0eb4a66f872b052972e5a76990efb8cf3f (patch) | |
tree | 9f4f5c6c2fce0d63693c078a44184368bf42d61e /gdb/frame.c | |
parent | 516b1f280dbebe0c6541897d8319ddcfa296bcb8 (diff) | |
download | gdb-2c517d0eb4a66f872b052972e5a76990efb8cf3f.zip gdb-2c517d0eb4a66f872b052972e5a76990efb8cf3f.tar.gz gdb-2c517d0eb4a66f872b052972e5a76990efb8cf3f.tar.bz2 |
2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.c (frame_extra_info_zalloc): New function.
* frame.h (frame_extra_info_zalloc): Declare.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 16a8283..4ed66b3 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1209,6 +1209,14 @@ get_frame_extra_info (struct frame_info *fi) return fi->extra_info; } +struct frame_extra_info * +frame_extra_info_zalloc (struct frame_info *fi, long size) +{ + fi->extra_info = frame_obstack_alloc (size); + memset (fi->extra_info, 0, size); + return fi->extra_info; +} + void _initialize_frame (void) { |