Support TLS variables on FreeBSD/i386.
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)
commitce25aa57a3cdd028be5868423e6e55506ccd1053
treed72c8af64c8d5538ad2a82dcaebacfcab3ec3dbb
parentf5424cfa7e9337a6cb02a1f83c9feea0995c5350
Support TLS variables on FreeBSD/i386.

Derive the pointer to the DTV array from the gs_base register.  As
with FreeBSD/amd64, gs_base is currently only available via the native
target.

gdb/ChangeLog:

* i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
(i386fbsd_init_abi): Install gdbarch
"fetch_tls_load_module_address" and "get_thread_local_address"
methods.
gdb/ChangeLog
gdb/i386-fbsd-tdep.c