]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/linespec.c
Change all_objfiles adapter to be a method on program_space
[thirdparty/binutils-gdb.git] / gdb / linespec.c
index 71346078d748a7cb7c7e6c7ee6ecd9dce8a5833b..54f17b7a8b4db105797661fd3bf8a4b99fc6d43f 100644 (file)
@@ -1141,7 +1141,7 @@ iterate_over_all_matching_symtabs
 
     set_current_program_space (pspace);
 
-    for (objfile *objfile : all_objfiles (current_program_space))
+    for (objfile *objfile : current_program_space->objfiles ())
       {
        if (objfile->sf)
          objfile->sf->qf->expand_symtabs_matching (objfile,
@@ -4357,7 +4357,7 @@ search_minsyms_for_name (struct collect_info *info,
 
        set_current_program_space (pspace);
 
-       for (objfile *objfile : all_objfiles (current_program_space))
+       for (objfile *objfile : current_program_space->objfiles ())
          {
            iterate_over_minimal_symbols (objfile, name,
                                          [&] (struct minimal_symbol *msym)