forked from Imagelibrary/binutils-gdb
2004-08-10 Andrew Cagney <cagney@gnu.org>
* utils.c (xmmalloc): Delete. (xmalloc): Inline xmmalloc and mmalloc calls. (msavestring): Use xmalloc. * defs.h (xmmalloc): Delete declaration. * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of xmmalloc. * symmisc.c (extend_psymbol_list): Ditto. * symfile.c (init_psymbol_list): Ditto. * source.c (find_source_lines): Ditto. * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto. * elfread.c (elf_symtab_read): Ditto. * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto. * coffread.c (coff_symfile_init): Ditto.
This commit is contained in:
@@ -1668,7 +1668,7 @@ hpread_symfile_init (struct objfile *objfile)
|
||||
|
||||
/* Allocate struct to keep track of the symfile */
|
||||
objfile->sym_private =
|
||||
xmmalloc (objfile->md, sizeof (struct hpread_symfile_info));
|
||||
xmalloc (sizeof (struct hpread_symfile_info));
|
||||
memset (objfile->sym_private, 0, sizeof (struct hpread_symfile_info));
|
||||
|
||||
/* We haven't read in any types yet. */
|
||||
@@ -3024,7 +3024,7 @@ hpread_lookup_type (dnttpointer hp_type, struct objfile *objfile)
|
||||
{
|
||||
DNTT_TYPE_VECTOR_LENGTH (objfile) = LNTT_SYMCOUNT (objfile) + GNTT_SYMCOUNT (objfile);
|
||||
DNTT_TYPE_VECTOR (objfile) = (struct type **)
|
||||
xmmalloc (objfile->md, DNTT_TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *));
|
||||
xmalloc (DNTT_TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *));
|
||||
memset (&DNTT_TYPE_VECTOR (objfile)[old_len], 0,
|
||||
(DNTT_TYPE_VECTOR_LENGTH (objfile) - old_len) *
|
||||
sizeof (struct type *));
|
||||
|
||||
Reference in New Issue
Block a user