Remove ALL_COMPUNITS
authorTom Tromey <tom@tromey.com>
Sat, 24 Nov 2018 16:20:18 +0000 (09:20 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 10 Jan 2019 01:28:15 +0000 (18:28 -0700)
commitd8aeb77f040ced7d37ab83f032b2e4ded2c81ca5
tree18324cc1d77dd8bb6cea91bfecd703746b9c71f3
parent592553c46959c98bf5981ad245d0fbb97f373d2a
Remove ALL_COMPUNITS

This removes the ALL_COMPUNITS, replacing its uses with two nested
ranged for loops.

gdb/ChangeLog
2019-01-09  Tom Tromey  <tom@tromey.com>

* symtab.c (lookup_objfile_from_block)
(find_pc_sect_compunit_symtab, search_symbols)
(default_collect_symbol_completion_matches_break_on): Use
objfile_compunits.
* objfiles.h (ALL_COMPUNITS): Remove.
* maint.c (count_symtabs_and_blocks): Use objfile_compunits.
* cp-support.c (add_symbol_overload_list_qualified): Use
objfile_compunits.
* ada-lang.c (ada_collect_symbol_completion_matches)
(ada_add_global_exceptions): Use objfile_compunits.
gdb/ChangeLog
gdb/ada-lang.c
gdb/cp-support.c
gdb/maint.c
gdb/objfiles.h
gdb/symtab.c