Change minimal_symbol_reader to store objfile
[deliverable/binutils-gdb.git] / gdb / xcoffread.c
index 3c843a0a4115db7a0a6c2ebc42bc4bce4d8e14a7..ccd6149a8521f0e3bbca13f5479dedafc93b45df 100644 (file)
@@ -3006,7 +3006,7 @@ xcoff_initial_scan (struct objfile *objfile, int symfile_flags)
   free_pending_blocks ();
   back_to = make_cleanup (really_free_pendings, 0);
 
-  minimal_symbol_reader reader;
+  minimal_symbol_reader reader (objfile);
 
   /* Now that the symbol table data of the executable file are all in core,
      process them and define symbols accordingly.  */
@@ -3016,7 +3016,7 @@ xcoff_initial_scan (struct objfile *objfile, int symfile_flags)
   /* Install any minimal symbols that have been collected as the current
      minimal symbols for this objfile.  */
 
-  reader.install (objfile);
+  reader.install ();
 
   /* DWARF2 sections.  */
 
This page took 0.02809 seconds and 4 git commands to generate.