aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/source.c b/gdb/source.c
index abe4c6c..196680d 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -269,7 +269,7 @@ select_source_symtab (struct symtab *s)
current_source_line = 1;
- for (objfile *ofp : all_objfiles (current_program_space))
+ for (objfile *ofp : current_program_space->objfiles ())
{
for (compunit_symtab *cu : objfile_compunits (ofp))
{
@@ -291,7 +291,7 @@ select_source_symtab (struct symtab *s)
if (current_source_symtab)
return;
- for (objfile *objfile : all_objfiles (current_program_space))
+ for (objfile *objfile : current_program_space->objfiles ())
{
if (objfile->sf)
s = objfile->sf->qf->find_last_source_symtab (objfile);
@@ -382,7 +382,7 @@ forget_cached_source_info (void)
struct program_space *pspace;
ALL_PSPACES (pspace)
- for (objfile *objfile : all_objfiles (pspace))
+ for (objfile *objfile : pspace->objfiles ())
{
forget_cached_source_info_for_objfile (objfile);
}