aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-08-12 17:45:13 +0000
committerAndrew Cagney <cagney@redhat.com>2003-08-12 17:45:13 +0000
commitbcf7d3caa297bf5cf3e1269d92884437b47d0d4f (patch)
treeb3a8dbc4b13914676e52b796d5a81ec04f450087 /gdb/frame.c
parent0b28295df7c39f648b27ade721c92a6e18c068ba (diff)
downloadgdb-bcf7d3caa297bf5cf3e1269d92884437b47d0d4f.zip
gdb-bcf7d3caa297bf5cf3e1269d92884437b47d0d4f.tar.gz
gdb-bcf7d3caa297bf5cf3e1269d92884437b47d0d4f.tar.bz2
2003-08-12 Andrew Cagney <cagney@redhat.com>
* frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of FRAME_OBSTACK_ZALLOC.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 8380871..efcee75 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -2279,7 +2279,8 @@ deprecated_set_frame_context (struct frame_info *fi,
struct frame_info *
deprecated_frame_xmalloc (void)
{
- struct frame_info *frame = FRAME_OBSTACK_ZALLOC (struct frame_info);
+ struct frame_info *frame = XMALLOC (struct frame_info);
+ memset (frame, 0, sizeof (*frame));
frame->this_id.p = 1;
return frame;
}