freebsd-nq/sys/amd64/ia32
John Baldwin 931983ee08 x86: Add a NT_X86_SEGBASES register set.
This register set contains the values of the fsbase and gsbase
registers.  Note that these registers can already be controlled
individually via ptrace(2) via MD operations, so the main reason for
adding this is to include these register values in core dumps.  In
particular, this will enable looking up the value of TLS variables
from core dumps in gdb.

The value of NT_X86_SEGBASES was chosen to match the value of
NT_386_TLS on Linux.  The notes serve similar purposes, but FreeBSD
will never dump a note equivalent to NT_386_TLS (which dumps a single
segment descriptor rather than a pair of addresses) and picking a
currently-unused value in the NT_X86_* range could result in a future
conflict.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D34650
2022-03-24 11:36:19 -07:00
..
ia32_exception.S x86: remove gcov kernel support 2021-04-02 15:41:51 +03:00
ia32_misc.c freebsd32: remove redundant no-arg syscalls 2021-11-17 20:12:24 +00:00
ia32_reg.c x86: Add a NT_X86_SEGBASES register set. 2022-03-24 11:36:19 -07:00
ia32_signal.c exec: Introduce the PROC_PS_STRINGS() macro 2022-01-17 16:11:54 -05:00
ia32_sigtramp.S amd64 ia32 vdso: add unwind annotations to the signal trampoline 2021-12-06 20:47:24 +02:00
ia32_syscall.c exec: Introduce the PROC_PS_STRINGS() macro 2022-01-17 16:11:54 -05:00