diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-08-10 21:52:05 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-08-10 21:52:05 +0000 |
commit | 2dc74dc1214738c22fc033d9d32eb8b4059bdba2 (patch) | |
tree | 7972274ddfa63de8b40654a06bb67e1160d224e6 /gdb/symmisc.c | |
parent | aa2ee5f640b5705d29a7c4f37b3abbfd30a08620 (diff) | |
download | gdb-2dc74dc1214738c22fc033d9d32eb8b4059bdba2.zip gdb-2dc74dc1214738c22fc033d9d32eb8b4059bdba2.tar.gz gdb-2dc74dc1214738c22fc033d9d32eb8b4059bdba2.tar.bz2 |
2004-08-10 Andrew Cagney <cagney@gnu.org>
* 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.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 1d8cdc7..45e2a44 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -99,12 +99,12 @@ free_symtab_block (struct objfile *objfile, struct block *b) ALL_BLOCK_SYMBOLS (b, iter, sym) { - xmfree (objfile->md, DEPRECATED_SYMBOL_NAME (sym)); - xmfree (objfile->md, sym); + xfree (DEPRECATED_SYMBOL_NAME (sym)); + xfree (sym); } dict_free (BLOCK_DICT (b)); - xmfree (objfile->md, b); + xfree (b); } /* Free all the storage associated with the struct symtab <- S. @@ -138,7 +138,7 @@ free_symtab (struct symtab *s) for (i = 0; i < n; i++) free_symtab_block (s->objfile, BLOCKVECTOR_BLOCK (bv, i)); /* Free the blockvector itself. */ - xmfree (s->objfile->md, bv); + xfree (bv); /* Also free the linetable. */ case free_linetable: @@ -146,7 +146,7 @@ free_symtab (struct symtab *s) or by some other symtab, except for our linetable. Free that now. */ if (LINETABLE (s)) - xmfree (s->objfile->md, LINETABLE (s)); + xfree (LINETABLE (s)); break; } @@ -156,12 +156,12 @@ free_symtab (struct symtab *s) /* Free source-related stuff */ if (s->line_charpos != NULL) - xmfree (s->objfile->md, s->line_charpos); + xfree (s->line_charpos); if (s->fullname != NULL) - xmfree (s->objfile->md, s->fullname); + xfree (s->fullname); if (s->debugformat != NULL) - xmfree (s->objfile->md, s->debugformat); - xmfree (s->objfile->md, s); + xfree (s->debugformat); + xfree (s); } void |