Remove most uses of ALL_OBJFILES
[deliverable/binutils-gdb.git] / gdb / maint.c
index 13cf82b3dbdd86e93118dcf67a76789fb4dd7acc..01d04df75bfd22562ad8a45c433083d3e7336aa2 100644 (file)
@@ -348,7 +348,6 @@ maintenance_info_sections (const char *arg, int from_tty)
       printf_filtered (_("file type %s.\n"), bfd_get_target (exec_bfd));
       if (arg && *arg && match_substring (arg, "ALLOBJ"))
        {
-         struct objfile *ofile;
          struct obj_section *osect;
 
          /* Only this function cares about the 'ALLOBJ' argument; 
@@ -358,7 +357,7 @@ maintenance_info_sections (const char *arg, int from_tty)
          if (strcmp (arg, "ALLOBJ") == 0)
            arg = NULL;
 
-         ALL_OBJFILES (ofile)
+         for (objfile *ofile : all_objfiles (current_program_space))
            {
              printf_filtered (_("  Object file: %s\n"), 
                               bfd_get_filename (ofile->obfd));
This page took 0.02466 seconds and 4 git commands to generate.