From 7936743b083af802de53a9483c450d917e991d46 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 10 Aug 2004 19:37:47 +0000 Subject: 2004-08-10 Andrew Cagney * 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. --- gdb/dbxread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/dbxread.c') diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 8b1286f..2f7c23a 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -625,7 +625,7 @@ dbx_symfile_init (struct objfile *objfile) /* 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 (objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info)); DBX_TEXT_SECTION (objfile) = bfd_get_section_by_name (sym_bfd, ".text"); @@ -892,7 +892,7 @@ init_bincl_list (int number, struct objfile *objfile) { bincls_allocated = number; next_bincl = bincl_list = (struct header_file_location *) - xmmalloc (objfile->md, bincls_allocated * sizeof (struct header_file_location)); + xmalloc (bincls_allocated * sizeof (struct header_file_location)); } /* Add a bincl to the list. */ -- cgit v1.1