diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-08-10 19:37:47 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-08-10 19:37:47 +0000 |
commit | 7936743b083af802de53a9483c450d917e991d46 (patch) | |
tree | 308c3878dd6db1628a33e4c990a67cf68cd842a8 /gdb/coffread.c | |
parent | 902f2ccb3d3c265dfd20a64f35839df9a6c7655a (diff) | |
download | gdb-7936743b083af802de53a9483c450d917e991d46.zip gdb-7936743b083af802de53a9483c450d917e991d46.tar.gz gdb-7936743b083af802de53a9483c450d917e991d46.tar.bz2 |
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.
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r-- | gdb/coffread.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index 821ca44..1c31d0f 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -437,14 +437,13 @@ coff_symfile_init (struct objfile *objfile) { /* Allocate struct to keep track of stab reading. */ 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)); /* Allocate struct to keep track of the symfile */ - objfile->sym_private = xmmalloc (objfile->md, - sizeof (struct coff_symfile_info)); + objfile->sym_private = xmalloc (sizeof (struct coff_symfile_info)); memset (objfile->sym_private, 0, sizeof (struct coff_symfile_info)); |