Move free_all_objfiles to program_space
[deliverable/binutils-gdb.git] / gdb / objfiles.c
index 31265c1653d944e32c9a618faf7e97b22e9a4056..56854cc5c63bdf92de7263faad8f492970119134 100644 (file)
@@ -618,21 +618,6 @@ objfile::~objfile ()
   get_objfile_pspace_data (pspace)->section_map_dirty = 1;
 }
 
-/* Free all the object files at once and clean up their users.  */
-
-void
-free_all_objfiles (void)
-{
-  struct so_list *so;
-
-  /* Any objfile reference would become stale.  */
-  for (so = master_so_list (); so; so = so->next)
-    gdb_assert (so->objfile == NULL);
-
-  for (objfile *objfile : current_program_space->objfiles_safe ())
-    objfile->unlink ();
-  clear_symtab_users (0);
-}
 \f
 /* A helper function for objfile_relocate1 that relocates a single
    symbol.  */
This page took 0.024176 seconds and 4 git commands to generate.