Change minimal_symbol_reader to store objfile
[deliverable/binutils-gdb.git] / gdb / elfread.c
index 4f55e379616d9be3c1259d2bf2dc7eef32390ba2..58e0cbc1da11410c45f1985f31fe746c8555b105 100644 (file)
@@ -1049,7 +1049,7 @@ elf_read_minimal_symbols (struct objfile *objfile, int symfile_flags,
       return;
     }
 
-  minimal_symbol_reader reader;
+  minimal_symbol_reader reader (objfile);
   back_to = make_cleanup (null_cleanup, NULL);
 
   /* Allocate struct to keep track of the symfile.  */
@@ -1149,7 +1149,7 @@ elf_read_minimal_symbols (struct objfile *objfile, int symfile_flags,
      responsibility to install them.  "mdebug" appears to be the only one
      which will do this.  */
 
-  reader.install (objfile);
+  reader.install ();
   do_cleanups (back_to);
 
   if (symtab_create_debug)
This page took 0.023923 seconds and 4 git commands to generate.