diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-06 16:22:14 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-06 16:22:14 +0000 |
commit | 5b90c7b5ebca2697d381a2da54383662b47874bb (patch) | |
tree | 66dda1a2effc690828d0cca74c36f86e33d7151c /gdb/mdebugread.c | |
parent | c4f68ce31b3fc5dc3ef0da5c645573c38489ca21 (diff) | |
download | gdb-5b90c7b5ebca2697d381a2da54383662b47874bb.zip gdb-5b90c7b5ebca2697d381a2da54383662b47874bb.tar.gz gdb-5b90c7b5ebca2697d381a2da54383662b47874bb.tar.bz2 |
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.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index c179f87..2300e3e 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -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 |