2005-02-03 Andrew Cagney <cagney@gnu.org>

* utils.c (xzalloc): New function.
	* defs.h (XZALLOC): Use xzalloc.
	(xzalloc): Declare.
	* value.c (allocate_value): Allocate a zeroed buffer.
	* mdebugread.c (xzalloc): Delete.
This commit is contained in:
Andrew Cagney 2005-02-06 16:22:14 +00:00
parent c4f68ce31b
commit 5b90c7b5eb
5 changed files with 19 additions and 13 deletions

View file

@ -297,17 +297,6 @@ static void handle_psymbol_enumerators (struct objfile *, FDR *, int,
static char *mdebug_next_symbol_text (struct objfile *);
/* Allocate zeroed memory */
static void *
xzalloc (unsigned int size)
{
void *p = xmalloc (size);
memset (p, 0, size);
return p;
}
/* Exported procedure: Builds a symtab from the PST partial one.
Restores the environment in effect when PST was created, delegates
most of the work to an ancillary procedure, and sorts