Remove most uses of ALL_OBJFILES
[deliverable/binutils-gdb.git] / gdb / source.c
index 85e15c3934b38820f0dfa36dea3f3aa5419173cf..74c895c27b8d10bf4a92932aa937517eb4c76ed6 100644 (file)
@@ -288,13 +288,13 @@ select_source_symtab (struct symtab *s)
   if (current_source_symtab)
     return;
 
-  ALL_OBJFILES (ofp)
-  {
-    if (ofp->sf)
-      s = ofp->sf->qf->find_last_source_symtab (ofp);
-    if (s)
-      current_source_symtab = s;
-  }
+  for (objfile *objfile : all_objfiles (current_program_space))
+    {
+      if (objfile->sf)
+       s = objfile->sf->qf->find_last_source_symtab (objfile);
+      if (s)
+       current_source_symtab = s;
+    }
   if (current_source_symtab)
     return;
 
This page took 0.024465 seconds and 4 git commands to generate.