From: Andrew Cagney Date: Tue, 12 Aug 2003 17:45:13 +0000 (+0000) Subject: 2003-08-12 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bcf7d3caa297bf5cf3e1269d92884437b47d0d4f;p=binutils-gdb.git 2003-08-12 Andrew Cagney * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of FRAME_OBSTACK_ZALLOC. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 030ac897048..cd4da94c518 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-08-12 Andrew Cagney + + * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of + FRAME_OBSTACK_ZALLOC. + 2003-08-12 Kevin Buettner * i386-tdep.c (i386_gdbarch_init): Enable default support for diff --git a/gdb/frame.c b/gdb/frame.c index 83808710f93..efcee75ddd2 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; }