Change all_objfiles adapter to be a method on program_space
[deliverable/binutils-gdb.git] / gdb / python / py-objfile.c
index d9cf548adb35264bade3d6b6053bb7b519f3a8d4..efad0072c27d65455e2ced65ce7a9ebd29f70a04 100644 (file)
@@ -501,7 +501,7 @@ objfpy_build_id_matches (const struct bfd_build_id *build_id,
 static struct objfile *
 objfpy_lookup_objfile_by_name (const char *name)
 {
-  for (objfile *objfile : all_objfiles (current_program_space))
+  for (objfile *objfile : current_program_space->objfiles ())
     {
       const char *filename;
 
@@ -527,7 +527,7 @@ objfpy_lookup_objfile_by_name (const char *name)
 static struct objfile *
 objfpy_lookup_objfile_by_build_id (const char *build_id)
 {
-  for (objfile *objfile : all_objfiles (current_program_space))
+  for (objfile *objfile : current_program_space->objfiles ())
     {
       const struct bfd_build_id *obfd_build_id;
 
This page took 0.02371 seconds and 4 git commands to generate.