]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
FreeBSD/x86: Read segment base registers from NT_X86_SEGBASES.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 1 Apr 2022 20:16:46 +0000 (13:16 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 27 May 2022 21:17:34 +0000 (14:17 -0700)
commitf9ef5da69571a6bfd53dff4e3432107d6b1f5e95
tree08ccf5f4f0587bf77924a9eeb20b050d803e9ad8
parent0256feda23e26c1112c7850373a1c12c8ef39ca5
FreeBSD/x86: Read segment base registers from NT_X86_SEGBASES.

FreeBSD kernels recently grew a new register core dump note containing
the base addresses of the %fs and %gs segments (corresponding to the
%fsbase and %gsbase registers).  Parse this note to permit inspecting
TLS variables in core dumps.  Native processes already supported TLS
via older ptrace() operations.

(cherry picked from commit f3215e1526d762f005fdf86abac81da514c74e50)
gdb/amd64-fbsd-tdep.c
gdb/i386-fbsd-tdep.c