Support the fs_base and gs_base registers on FreeBSD/amd64 native processes.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 27 Jun 2017 01:18:19 +0000 (18:18 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 11 Jul 2017 16:47:14 +0000 (09:47 -0700)
commit0aa37b654c0f31e446ab47826f0bcbec15d0112f
tree2bb5bea9eb9b56fd636727aceb5f48b376f38be9
parent48aeef91c248291dd03583798904612426b1f40a
Support the fs_base and gs_base registers on FreeBSD/amd64 native processes.

Use ptrace operations to fetch and store the fs_base and gs_base registers
for FreeBSD/amd64 processes.  Note that FreeBSD does not currently store the
value of these registers in core dumps, so these registers are only
available when inspecting a running process.

gdb/ChangeLog:

* amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
PT_GETFSBASE and PT_GETGSBASE.
(amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
PT_SETGSBASE.
gdb/ChangeLog
gdb/amd64-bsd-nat.c