From 2dc74dc1214738c22fc033d9d32eb8b4059bdba2 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 10 Aug 2004 21:52:05 +0000 Subject: 2004-08-10 Andrew Cagney * defs.h (xmfree): Delete. * utils.c (xmfree): Delete function. (xfree): Inline calls to xmfree and mfree. * symmisc.c (free_symtab_block, free_symtab): Use xfree. * symfile.c (reread_symbols, init_psymbol_list): Ditto. * source.c (forget_cached_source_info, find_and_open_source): Ditto. * somread.c (som_symfile_finish): Ditto. * objfiles.c (allocate_objfile, free_objfile): * nlmread.c (nlm_symfile_finish): Ditto. * hpread.c (hpread_symfile_finish): Ditto. * elfread.c (free_elfinfo, elf_symfile_finish): Ditto. * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto. * coffread.c (coff_symfile_finish): Ditto. --- gdb/symfile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/symfile.c') diff --git a/gdb/symfile.c b/gdb/symfile.c index f203ba0..d0ec083 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1862,11 +1862,11 @@ reread_symbols (void) /* FIXME: Do we have to free a whole linked list, or is this enough? */ if (objfile->global_psymbols.list) - xmfree (objfile->md, objfile->global_psymbols.list); + xfree (objfile->global_psymbols.list); memset (&objfile->global_psymbols, 0, sizeof (objfile->global_psymbols)); if (objfile->static_psymbols.list) - xmfree (objfile->md, objfile->static_psymbols.list); + xfree (objfile->static_psymbols.list); memset (&objfile->static_psymbols, 0, sizeof (objfile->static_psymbols)); @@ -2690,11 +2690,11 @@ init_psymbol_list (struct objfile *objfile, int total_symbols) if (objfile->global_psymbols.list) { - xmfree (objfile->md, objfile->global_psymbols.list); + xfree (objfile->global_psymbols.list); } if (objfile->static_psymbols.list) { - xmfree (objfile->md, objfile->static_psymbols.list); + xfree (objfile->static_psymbols.list); } /* Current best guess is that approximately a twentieth -- cgit v1.1