Remove most uses of ALL_OBJFILES
[deliverable/binutils-gdb.git] / gdb / compile / compile-object-run.c
index 81453d0be0f641b25317eea50c0fe4ee977bb2bf..8abe494218eb38de72216848427fde2c45ef6efd 100644 (file)
@@ -62,7 +62,6 @@ static void
 do_module_cleanup (void *arg, int registers_valid)
 {
   struct do_module_cleanup *data = (struct do_module_cleanup *) arg;
-  struct objfile *objfile;
 
   if (data->executedp != NULL)
     {
@@ -83,7 +82,7 @@ do_module_cleanup (void *arg, int registers_valid)
        }
     }
 
-  ALL_OBJFILES (objfile)
+  for (objfile *objfile : all_objfiles (current_program_space))
     if ((objfile->flags & OBJF_USERLOADED) == 0
         && (strcmp (objfile_name (objfile), data->objfile_name_string) == 0))
       {
This page took 0.023595 seconds and 4 git commands to generate.