mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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:
@ -377,7 +377,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
|
||||
+ (sizeof (CORE_ADDR)
|
||||
* max_index));
|
||||
sectinfo = (struct stab_section_info *)
|
||||
xmmalloc (objfile->md, size);
|
||||
xmalloc (size);
|
||||
memset (sectinfo, 0, size);
|
||||
sectinfo->num_sections = max_index;
|
||||
if (filesym == NULL)
|
||||
@ -499,7 +499,7 @@ elf_symfile_read (struct objfile *objfile, int mainline)
|
||||
|
||||
/* Allocate struct to keep track of the symfile */
|
||||
objfile->sym_stab_info = (struct dbx_symfile_info *)
|
||||
xmmalloc (objfile->md, sizeof (struct dbx_symfile_info));
|
||||
xmalloc (sizeof (struct dbx_symfile_info));
|
||||
memset ((char *) objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info));
|
||||
make_cleanup (free_elfinfo, (void *) objfile);
|
||||
|
||||
|
Reference in New Issue
Block a user