Support TLS variables on FreeBSD/powerpc.
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)
commit8399425f5f472ad8e630bb30ad2dbefeddbb68b7
tree06996585158f9c0050039be45da18bacfbbdd25e
parentb0f87ed032bb68a9965de81cbf9fd676a83b9174
Support TLS variables on FreeBSD/powerpc.

Derive the pointer to the DTV array from the %r2 register on 32-bit
powerpc and %r13 on 64-bit powerpc.

gdb/ChangeLog:

* ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
(ppcfbsd_init_abi): Install gdbarch
"fetch_tls_load_module_address" and "get_thread_local_address"
methods.
gdb/ChangeLog
gdb/ppc-fbsd-tdep.c