Remove most uses of ALL_OBJFILES
[deliverable/binutils-gdb.git] / gdb / objc-lang.c
index a3908f2b0980084b1776bdbd44eda81c10a03127..ec0ea56063b4efdeb2d45f411f828285c0b2970f 100644 (file)
@@ -972,8 +972,6 @@ find_methods (char type, const char *theclass, const char *category,
              const char *selector,
              std::vector<const char *> *symbol_names)
 {
-  struct objfile *objfile = NULL;
-
   const char *symname = NULL;
 
   char ntype = '\0';
@@ -986,7 +984,7 @@ find_methods (char type, const char *theclass, const char *category,
 
   gdb_assert (symbol_names != NULL);
 
-  ALL_OBJFILES (objfile)
+  for (objfile *objfile : all_objfiles (current_program_space))
     {
       unsigned int *objc_csym;
       struct minimal_symbol *msymbol = NULL;
This page took 0.026511 seconds and 4 git commands to generate.