Change minimal_symbol_reader to store objfile
[deliverable/binutils-gdb.git] / gdb / mdebugread.c
index 358ee70fd23abf9d358d2b7eff0e19ac63e99cc4..1285db4fca6261297c19473e8909259d4aa1c6da 100644 (file)
@@ -4875,7 +4875,7 @@ elfmdebug_build_psymtabs (struct objfile *objfile,
      information from .mdebug in an ELF file, or whether we will.
      Re-initialize the minimal symbol reader in case we do.  */
 
-  minimal_symbol_reader reader;
+  minimal_symbol_reader reader (objfile);
 
   info = ((struct ecoff_debug_info *)
          obstack_alloc (&objfile->objfile_obstack,
@@ -4887,7 +4887,7 @@ elfmdebug_build_psymtabs (struct objfile *objfile,
 
   mdebug_build_psymtabs (objfile, swap, info);
 
-  reader.install (objfile);
+  reader.install ();
 }
 
 void
This page took 0.024542 seconds and 4 git commands to generate.