diff options
Diffstat (limited to 'gdb/maint.c')
-rw-r--r-- | gdb/maint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/maint.c b/gdb/maint.c index e653a5d4ac8..ddd25a480cc 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -773,7 +773,7 @@ count_symtabs_and_blocks (int *nr_symtabs_ptr, int *nr_compunit_symtabs_ptr, { for (objfile *o : current_program_space->objfiles ()) { - for (compunit_symtab *cu : objfile_compunits (o)) + for (compunit_symtab *cu : o->compunits ()) { ++nr_compunit_symtabs; nr_blocks += BLOCKVECTOR_NBLOCKS (COMPUNIT_BLOCKVECTOR (cu)); |