diff options
author | Tom Tromey <tom@tromey.com> | 2023-04-10 10:43:32 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-05-07 12:44:17 -0600 |
commit | 5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec (patch) | |
tree | 36230d533899f8a7459c129e1691944d82209b99 /gdb/symtab.c | |
parent | 9ed8433a04bf0430e2da3cd44c18667859782410 (diff) | |
download | binutils-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.zip binutils-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.tar.gz binutils-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.tar.bz2 |
Remove ALL_OBJFILE_OSECTIONS
This replaces ALL_OBJFILE_OSECTIONS with an iterator so that for-each
can be used.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 594b13f..5e85c53 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1770,9 +1770,7 @@ fixup_symbol_section (struct symbol *sym, struct objfile *objfile) this reason, we still attempt a lookup by name prior to doing a search of the section table. */ - struct obj_section *s; - - ALL_OBJFILE_OSECTIONS (objfile, s) + for (obj_section *s : objfile->sections ()) { if ((bfd_section_flags (s->the_bfd_section) & SEC_ALLOC) == 0) continue; |