From e9ad22ee5f0a40dfa1182ee68e3349dd72a42afe Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 10 Mar 2019 15:37:20 -0600 Subject: 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 * 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) : 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gdb/ChangeLog') 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 + * 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) : 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 + * symfile.c (reread_symbols): Remove old comment. * objfiles.c (free_all_objfiles): Fix a typo. -- cgit v1.1