Implement the skip_solib_resolver gdbarch hook for FreeBSD architectures.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 20 Jul 2020 16:09:58 +0000 (09:09 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 20 Jul 2020 16:10:18 +0000 (09:10 -0700)
commited810cc7d3252bd8bfdb4303ee6b44293fe6214e
tree93cc390389149769497f84234c5ef0be3b4f092f
parentae5369e773c341ab55a130fffb4678bb3595d692
Implement the skip_solib_resolver gdbarch hook for FreeBSD architectures.

The ELF runtime linker on all FreeBSD architectures uses the
"_rtld_bind" entry point for unresolved PTL entries.  FreeBSD/mips has
an additional entry point called "_mips_rtld_bind".

gdb/ChangeLog:

* fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
(fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
* fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
* mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
(mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
method.
gdb/ChangeLog
gdb/fbsd-tdep.c
gdb/fbsd-tdep.h
gdb/mips-fbsd-tdep.c