Remove ALL_PSPACES
[deliverable/binutils-gdb.git] / gdb / ada-tasks.c
index 589d5e84e0a0f60905c94cf5825b5e1f16358e9c..266335387a317e86e6f8cfc10ebc22b3c0dccba9 100644 (file)
@@ -1433,9 +1433,7 @@ ada_tasks_new_objfile_observer (struct objfile *objfile)
     {
       /* All objfiles are being cleared, so we should clear all
         our caches for all program spaces.  */
-      struct program_space *pspace;
-
-      for (pspace = program_spaces; pspace != NULL; pspace = pspace->next)
+      for (struct program_space *pspace : program_spaces)
         ada_tasks_invalidate_pspace_data (pspace);
     }
   else
This page took 0.023235 seconds and 4 git commands to generate.