diff options
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index 7dd8fc7..152576d 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -776,9 +776,8 @@ elf_gnu_ifunc_resolve_by_cache (const char *name, CORE_ADDR *addr_p) To search other namespaces, we would need to provide context, e.g. in form of an objfile in that namespace. */ - gdbarch_iterate_over_objfiles_in_search_order - (current_inferior ()->arch (), - [name, &addr_p, &found] (struct objfile *objfile) + current_program_space->iterate_over_objfiles_in_search_order + ([name, &addr_p, &found] (struct objfile *objfile) { htab_t htab; elf_gnu_ifunc_cache *entry_p; @@ -830,9 +829,8 @@ elf_gnu_ifunc_resolve_by_got (const char *name, CORE_ADDR *addr_p) To search other namespaces, we would need to provide context, e.g. in form of an objfile in that namespace. */ - gdbarch_iterate_over_objfiles_in_search_order - (current_inferior ()->arch (), - [name, name_got_plt, &addr_p, &found] (struct objfile *objfile) + current_program_space->iterate_over_objfiles_in_search_order + ([name, name_got_plt, &addr_p, &found] (struct objfile *objfile) { bfd *obfd = objfile->obfd.get (); struct gdbarch *gdbarch = objfile->arch (); @@ -1050,7 +1048,7 @@ elf_gnu_ifunc_resolver_return_stop (code_breakpoint *b) b->type = bp_breakpoint; update_breakpoint_locations (b, current_program_space, - find_function_start_sal (resolved_pc, NULL, true), + find_function_start_sal (resolved_pc, true), {}); } @@ -1513,9 +1511,7 @@ static const struct gnu_ifunc_fns elf_gnu_ifunc_fns = elf_gnu_ifunc_resolver_return_stop }; -void _initialize_elfread (); -void -_initialize_elfread () +INIT_GDB_FILE (elfread) { add_symtab_fns (bfd_target_elf_flavour, &elf_sym_fns); |