diff options
author | Tom Tromey <tom@tromey.com> | 2018-11-24 09:20:18 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-09 18:28:15 -0700 |
commit | d8aeb77f040ced7d37ab83f032b2e4ded2c81ca5 (patch) | |
tree | 18324cc1d77dd8bb6cea91bfecd703746b9c71f3 /gdb/objfiles.h | |
parent | 592553c46959c98bf5981ad245d0fbb97f373d2a (diff) | |
download | gdb-d8aeb77f040ced7d37ab83f032b2e4ded2c81ca5.zip gdb-d8aeb77f040ced7d37ab83f032b2e4ded2c81ca5.tar.gz gdb-d8aeb77f040ced7d37ab83f032b2e4ded2c81ca5.tar.bz2 |
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.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index ba6be2d..ae6a779 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -718,12 +718,6 @@ private: ALL_OBJFILES (objfile) \ ALL_OBJFILE_FILETABS (objfile, ps, s) -/* Traverse all compunits in all objfiles in the current program space. */ - -#define ALL_COMPUNITS(objfile, cu) \ - ALL_OBJFILES (objfile) \ - for (compunit_symtab *cu : objfile_compunits (objfile)) - #define ALL_OBJFILE_OSECTIONS(objfile, osect) \ for (osect = objfile->sections; osect < objfile->sections_end; osect++) \ if (osect->the_bfd_section == NULL) \ |