diff options
author | Tom Tromey <tom@tromey.com> | 2019-03-10 15:37:20 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-04-10 08:05:17 -0600 |
commit | e9ad22ee5f0a40dfa1182ee68e3349dd72a42afe (patch) | |
tree | 5500e93752b2711677dbcd2524e1d91f067bd680 /gdb/ChangeLog | |
parent | ee3711344b6e0cffeb237fa6889aab04853f9004 (diff) | |
download | gdb-e9ad22ee5f0a40dfa1182ee68e3349dd72a42afe.zip gdb-e9ad22ee5f0a40dfa1182ee68e3349dd72a42afe.tar.gz gdb-e9ad22ee5f0a40dfa1182ee68e3349dd72a42afe.tar.bz2 |
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7a8338e..f0797b6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,20 @@ 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. + +2019-04-10 Tom Tromey <tom@tromey.com> + * symfile.c (reread_symbols): Remove old comment. * objfiles.c (free_all_objfiles): Fix a typo. |