This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/2] Support the fs_base and gs_base registers on FreeBSD/amd64 native processes.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: John Baldwin <jhb at FreeBSD dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 11 Jul 2017 09:06:03 +0100
- Subject: Re: [PATCH 2/2] Support the fs_base and gs_base registers on FreeBSD/amd64 native processes.
- Authentication-results: sourceware.org; auth=none
- References: <20170627224948.99138-1-jhb@FreeBSD.org> <20170627224948.99138-3-jhb@FreeBSD.org>
John Baldwin <jhb@FreeBSD.org> writes:
> 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.
The patch is good to me.
--
Yao (齐尧)