gdb/
[deliverable/binutils-gdb.git] / gdb / objfiles.c
index 41aab64594a1d0bc4847dd9f2213d4e1184d66b0..3419c6dfa2dacff24c25456a0c84a6ac6a68405d 100644 (file)
@@ -393,6 +393,10 @@ free_objfile (struct objfile *objfile)
       objfile->separate_debug_objfile_backlink->separate_debug_objfile = NULL;
     }
   
+  /* Remove any references to this objfile in the global value
+     lists.  */
+  preserve_values (objfile);
+
   /* First do any symbol file specific actions required when we are
      finished with a particular symbol file.  Note that if the objfile
      is using reusable symbol information (via mmalloc) then each of
This page took 0.02465 seconds and 4 git commands to generate.