Introduce a separate debug objfile iterator
authorTom Tromey <tom@tromey.com>
Sun, 10 Mar 2019 21:37:20 +0000 (15:37 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 10 Apr 2019 14:05:17 +0000 (08:05 -0600)
commite9ad22ee5f0a40dfa1182ee68e3349dd72a42afe
tree5500e93752b2711677dbcd2524e1d91f067bd680
parentee3711344b6e0cffeb237fa6889aab04853f9004
Introduce a separate debug objfile iterator

This introduces a new iterator and range adapter for iteration over
the separate debug files of a given objfile.  As in the current
approach, the requested objfile is returned first, followed by the
separate debug objfiles.

gdb/ChangeLog
2019-04-10  Tom Tromey  <tom@tromey.com>

* symtab.c (lookup_global_symbol_from_objfile)
(lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
* objfiles.h (class separate_debug_iterator): New.
(class separate_debug_range): New.
(struct objfile) <separate_debug_objfiles>: New method.
(objfile_separate_debug_iterate): Don't declare.
* objfiles.c (separate_debug_iterator::operator++): Rename from
objfile_separate_debug_iterate.
(objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
iterator.
* minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
iterator.
gdb/ChangeLog
gdb/minsyms.c
gdb/objfiles.c
gdb/objfiles.h
gdb/symtab.c
This page took 0.025206 seconds and 4 git commands to generate.