aboutsummaryrefslogtreecommitdiff
path: root/gdb/ia64-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-01-19 21:30:36 -0700
committerTom Tromey <tom@tromey.com>2019-04-10 08:05:17 -0600
commitbf227d6105cb3908cde816429c84569da12e829c (patch)
treed7022aa84f98f332460726b0a1e944c7c14db563 /gdb/ia64-tdep.c
parentb05971a652c35ed72d3c95290e18d8f6e4ef6c46 (diff)
downloadfsf-binutils-gdb-bf227d6105cb3908cde816429c84569da12e829c.zip
fsf-binutils-gdb-bf227d6105cb3908cde816429c84569da12e829c.tar.gz
fsf-binutils-gdb-bf227d6105cb3908cde816429c84569da12e829c.tar.bz2
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.
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r--gdb/ia64-tdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index 7b4d0a0..f466739 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -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;