mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user