diff options
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r-- | gdb/ia64-tdep.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 395b5f7..6cf2986 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -3432,12 +3432,12 @@ ia64_find_global_pointer_from_dynamic_section (struct gdbarch *gdbarch, faddr_sect = find_pc_section (faddr); if (faddr_sect != NULL) { - for (obj_section *osect : faddr_sect->objfile->sections ()) + for (obj_section &osect : faddr_sect->objfile->sections ()) { - if (strcmp (osect->the_bfd_section->name, ".dynamic") == 0) + if (strcmp (osect.the_bfd_section->name, ".dynamic") == 0) { - CORE_ADDR addr = osect->addr (); - CORE_ADDR endaddr = osect->endaddr (); + CORE_ADDR addr = osect.addr (); + CORE_ADDR endaddr = osect.endaddr (); while (addr < endaddr) { @@ -3513,12 +3513,12 @@ find_extant_func_descr (struct gdbarch *gdbarch, CORE_ADDR faddr) if (faddr_sect != NULL) { - for (obj_section *osect : faddr_sect->objfile->sections ()) + for (obj_section &osect : faddr_sect->objfile->sections ()) { - if (strcmp (osect->the_bfd_section->name, ".opd") == 0) + if (strcmp (osect.the_bfd_section->name, ".opd") == 0) { - CORE_ADDR addr = osect->addr (); - CORE_ADDR endaddr = osect->endaddr (); + CORE_ADDR addr = osect.addr (); + CORE_ADDR endaddr = osect.endaddr (); while (addr < endaddr) { @@ -4014,9 +4014,7 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -void _initialize_ia64_tdep (); -void -_initialize_ia64_tdep () +INIT_GDB_FILE (ia64_tdep) { gdbarch_register (bfd_arch_ia64, ia64_gdbarch_init, NULL); } |