gdb: update gnu ifunc resolve
authorMarkus Metzger <markus.t.metzger@intel.com>
Mon, 30 May 2022 07:35:29 +0000 (09:35 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Tue, 18 Oct 2022 12:16:10 +0000 (14:16 +0200)
commit1dc9084f5e95fd9a1f2f0e9baf9c6e52c5a5ee29
tree943425b5c2f0b467b54b9a514d69c8779de15423
parent531bd03892bbf95f346819006b365c0b0ccb6d06
gdb: update gnu ifunc resolve

Update elf_gnu_ifunc_resolve_by_cache() and elf_gnu_ifunc_resolve_by_got()
to use gdbarch_iterate_over_objfiles_in_search_order() in order to
restrict the objfile traversal to the initial namespace.

In order to extend this to other namespaces, we'd need to provide context,
e.g. via an objfile inside that namespace.
gdb/elfread.c