From 5b90c7b5ebca2697d381a2da54383662b47874bb Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 6 Feb 2005 16:22:14 +0000 Subject: 2005-02-03 Andrew Cagney * utils.c (xzalloc): New function. * defs.h (XZALLOC): Use xzalloc. (xzalloc): Declare. * value.c (allocate_value): Allocate a zeroed buffer. * mdebugread.c (xzalloc): Delete. --- gdb/utils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/utils.c') diff --git a/gdb/utils.c b/gdb/utils.c index 1bdcb63..d93e55f 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -947,6 +947,12 @@ xmalloc (size_t size) return (val); } +void * +xzalloc (size_t size) +{ + return xcalloc (1, size); +} + PTR /* OK: PTR */ xrealloc (PTR ptr, size_t size) /* OK: PTR */ { -- cgit v1.1