Remove ALL_OBJFILES and ALL_FILETABS
authorTom Tromey <tom@tromey.com>
Sat, 24 Nov 2018 16:58:20 +0000 (09:58 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 10 Jan 2019 01:28:15 +0000 (18:28 -0700)
commit8b31193aa9752ba60d63cedaba943370d76ce543
tree3e6787e80428ab357880409a63be7a620b769ffd
parentd5da8b3c0d99e71c27832a4e9b60c61eebf9767c
Remove ALL_OBJFILES and ALL_FILETABS

This removes the ALL_OBJFILES and ALL_FILETABS macros, replacing them
with ranged for loops.

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

* symtab.c (find_line_symtab, info_sources_command)
(make_source_files_completion_list): Use objfile_compunits.
* source.c (select_source_symtab): Use objfile_compunits.
* objfiles.h (struct objfile): Update comment.
(ALL_OBJFILES): Remove.
(ALL_FILETABS): Remove.
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
objfile_compunits.
gdb/ChangeLog
gdb/mi/mi-cmd-file.c
gdb/objfiles.h
gdb/source.c
gdb/symtab.c