2004-08-10 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / elfread.c
index b6abe083a6ece3cef4de9097834d831e381ae033..a9f4e177104777e11322d0f00105acb604076c54 100644 (file)
@@ -377,7 +377,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
                                      + (sizeof (CORE_ADDR)
                                         * max_index));
                              sectinfo = (struct stab_section_info *)
-                               xmmalloc (objfile->md, size);
+                               xmalloc (size);
                              memset (sectinfo, 0, size);
                              sectinfo->num_sections = max_index;
                              if (filesym == NULL)
@@ -499,7 +499,7 @@ elf_symfile_read (struct objfile *objfile, int mainline)
 
   /* 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 ((char *) objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info));
   make_cleanup (free_elfinfo, (void *) objfile);
 
This page took 0.024133 seconds and 4 git commands to generate.