diff options
author | Tom Tromey <tom@tromey.com> | 2018-11-24 09:51:44 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-09 18:28:15 -0700 |
commit | d5da8b3c0d99e71c27832a4e9b60c61eebf9767c (patch) | |
tree | c4e9e194e65019df77c754dfea3399c34de7080c /gdb/coffread.c | |
parent | 5accd1a07e080c386918da413e0f9e90c4cab58a (diff) | |
download | binutils-d5da8b3c0d99e71c27832a4e9b60c61eebf9767c.zip binutils-d5da8b3c0d99e71c27832a4e9b60c61eebf9767c.tar.gz binutils-d5da8b3c0d99e71c27832a4e9b60c61eebf9767c.tar.bz2 |
Remove ALL_OBJFILE_FILETABS
This removes ALL_OBJFILE_FILETABS, replacing its uses with ranged for
loops.
gdb/ChangeLog
2019-01-09 Tom Tromey <tom@tromey.com>
* symmisc.c (print_objfile_statistics, dump_objfile)
(maintenance_print_symbols): Use compunit_filetabs.
* source.c (forget_cached_source_info_for_objfile): Use
compunit_filetabs.
* objfiles.h (ALL_OBJFILE_FILETABS): Remove.
(ALL_FILETABS): Use compunit_filetabs.
* objfiles.c (objfile_relocate1): Use compunit_filetabs.
* coffread.c (coff_symtab_read): Use compunit_filetabs.
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r-- | gdb/coffread.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index 611febe..4f05295 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -1203,8 +1203,11 @@ coff_symtab_read (minimal_symbol_reader &reader, /* Patch up any opaque types (references to types that are not defined in the file where they are referenced, e.g. "struct foo *bar"). */ { - ALL_OBJFILE_FILETABS (objfile, cu, s) - patch_opaque_types (s); + for (compunit_symtab *cu : objfile_compunits (objfile)) + { + for (symtab *s : compunit_filetabs (cu)) + patch_opaque_types (s); + } } coffread_objfile = NULL; |