diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-15 20:06:48 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-17 15:42:05 -0700 |
commit | b669c95337903d39aa2254e8ea0405c0ac117d24 (patch) | |
tree | 78a37f3188cbc3f00e0c2c87298f92bed8b64e76 /gdb/ada-lang.c | |
parent | 7e955d83c4128ec773d84b92487ed1cdfed09938 (diff) | |
download | binutils-gdb-b669c95337903d39aa2254e8ea0405c0ac117d24.tar.gz |
Add compunits range adapter to objfile
This removes the objfile_compunits range adapter in favor of using a
method on objfile.
2019-01-15 Tom Tromey <tom@tromey.com>
* symtab.c (lookup_objfile_from_block)
(lookup_symbol_in_objfile_symtabs)
(basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
(find_line_symtab, info_sources_command)
(default_collect_symbol_completion_matches_break_on)
(make_source_files_completion_list): Update.
* symmisc.c (print_objfile_statistics, dump_objfile)
(maintenance_print_symbols, maintenance_info_symtabs)
(maintenance_check_symtabs, maintenance_info_line_tables):
Update.
* source.c (select_source_symtab)
(forget_cached_source_info_for_objfile): Update.
* objfiles.h (class objfile_compunits): Remove.
(struct objfile) <compunits_range>: New typedef.
(compunits): New method.
* objfiles.c (objfile_relocate1): Update.
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
* maint.c (count_symtabs_and_blocks): Update.
* linespec.c (iterate_over_all_matching_symtabs): Update.
* cp-support.c (add_symbol_overload_list_qualified): Update.
* coffread.c (coff_symtab_read): Update.
* ada-lang.c (add_nonlocal_symbols)
(ada_collect_symbol_completion_matches)
(ada_add_global_exceptions): Update.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index df915c594c2..7d997543c26 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -5629,7 +5629,7 @@ add_nonlocal_symbols (struct obstack *obstackp, symbol_name_match_type::FULL, compare_names); - for (compunit_symtab *cu : objfile_compunits (objfile)) + for (compunit_symtab *cu : objfile->compunits ()) { const struct block *global_block = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (cu), GLOBAL_BLOCK); @@ -6467,7 +6467,7 @@ ada_collect_symbol_completion_matches (completion_tracker &tracker, for (objfile *objfile : current_program_space->objfiles ()) { - for (compunit_symtab *s : objfile_compunits (objfile)) + for (compunit_symtab *s : objfile->compunits ()) { QUIT; b = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (s), GLOBAL_BLOCK); @@ -6486,7 +6486,7 @@ ada_collect_symbol_completion_matches (completion_tracker &tracker, for (objfile *objfile : current_program_space->objfiles ()) { - for (compunit_symtab *s : objfile_compunits (objfile)) + for (compunit_symtab *s : objfile->compunits ()) { QUIT; b = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (s), STATIC_BLOCK); @@ -13568,7 +13568,7 @@ ada_add_global_exceptions (compiled_regex *preg, for (objfile *objfile : current_program_space->objfiles ()) { - for (compunit_symtab *s : objfile_compunits (objfile)) + for (compunit_symtab *s : objfile->compunits ()) { const struct blockvector *bv = COMPUNIT_BLOCKVECTOR (s); int i; |