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/source.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/source.c')
-rw-r--r-- | gdb/source.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/source.c b/gdb/source.c index a55bd33..b1e9c3874 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -325,12 +325,12 @@ forget_cached_source_info (void) { if (s->line_charpos != NULL) { - xmfree (objfile->md, s->line_charpos); + xfree (s->line_charpos); s->line_charpos = NULL; } if (s->fullname != NULL) { - xmfree (objfile->md, s->fullname); + xfree (s->fullname); s->fullname = NULL; } } @@ -851,7 +851,7 @@ find_and_open_source (struct objfile *objfile, if (result >= 0) return result; /* Didn't work -- free old one, try again. */ - xmfree (objfile->md, *fullname); + xfree (*fullname); *fullname = NULL; } |