forked from Imagelibrary/binutils-gdb
Remove some uses of "object_files"
The "object_files" macro is sometimes used when iterating over objfiles. This patch removes a few such uses in favor of the new range adapter. gdb/ChangeLog 2019-04-10 Tom Tromey <tom@tromey.com> * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach. * minsyms.c (lookup_minimal_symbol): Use foreach. (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name) (lookup_minimal_symbol_solib_trampoline): Likewise. * symfile.c (reread_symbols): Use foreach.
This commit is contained in:
@@ -2845,7 +2845,6 @@ ia64_get_dyn_info_list (unw_addr_space_t as,
|
||||
unw_word_t *dilap, void *arg)
|
||||
{
|
||||
struct obj_section *text_sec;
|
||||
struct objfile *objfile;
|
||||
unw_word_t ip, addr;
|
||||
unw_dyn_info_t di;
|
||||
int ret;
|
||||
@@ -2853,7 +2852,7 @@ ia64_get_dyn_info_list (unw_addr_space_t as,
|
||||
if (!libunwind_is_initialized ())
|
||||
return -UNW_ENOINFO;
|
||||
|
||||
for (objfile = object_files; objfile; objfile = objfile->next)
|
||||
for (objfile *objfile : current_program_space->objfiles ())
|
||||
{
|
||||
void *buf = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user