Support TLS variables on FreeBSD/riscv.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 12 Mar 2019 20:39:02 +0000 (13:39 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 12 Mar 2019 20:45:48 +0000 (13:45 -0700)
commitb0f87ed032bb68a9965de81cbf9fd676a83b9174
tree74223706a0789cd97db2a46d46fbfe0412f747c8
parentce25aa57a3cdd028be5868423e6e55506ccd1053
Support TLS variables on FreeBSD/riscv.

Derive the pointer to the DTV array from the tp register.

gdb/ChangeLog:

* riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
(riscv_fbsd_init_abi): Install gdbarch
"fetch_tls_load_module_address" and "get_thread_local_address"
methods.
gdb/ChangeLog
gdb/riscv-fbsd-tdep.c