Remove ALL_PSPACES
[deliverable/binutils-gdb.git] / gdb / guile / scm-progspace.c
index 5a39780dcbc4572f1311ce0a6ccf16979c005923..49c3e36227fb73d04ab00294881f20269c6f5e44 100644 (file)
@@ -353,17 +353,16 @@ gdbscm_current_progspace (void)
 static SCM
 gdbscm_progspaces (void)
 {
-  struct program_space *ps;
   SCM result;
 
   result = SCM_EOL;
 
-  ALL_PSPACES (ps)
-  {
-    SCM item = psscm_scm_from_pspace (ps);
+  for (struct program_space *ps : program_spaces)
+    {
+      SCM item = psscm_scm_from_pspace (ps);
 
-    result = scm_cons (item, result);
-  }
+      result = scm_cons (item, result);
+    }
 
   return scm_reverse_x (result, SCM_EOL);
 }
This page took 0.024469 seconds and 4 git commands to generate.