This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 02/13 v2] Add x86_debug_reg_state to gdbserver
- From: Pedro Alves <palves at redhat dot com>
- To: Gary Benson <gbenson at redhat dot com>, gdb-patches at sourceware dot org
- Date: Tue, 28 Oct 2014 12:56:22 +0000
- Subject: Re: [PATCH 02/13 v2] Add x86_debug_reg_state to gdbserver
- Authentication-results: sourceware.org; auth=none
- References: <1412848358-9958-1-git-send-email-gbenson at redhat dot com> <1412848358-9958-3-git-send-email-gbenson at redhat dot com>
On 10/09/2014 10:52 AM, Gary Benson wrote:
> This commit introduces a new function, x86_debug_reg_state, that
> shared x86 code can use to access the local mirror of a process's
> debug registers. This function already existed in GDB and was
> in use by GDB's x86_linux_prepare_to_resume. An equivalent was
> written for gdbserver and gdbserver's x86_linux_prepare_to_resume
> was modified to use it.
>
> gdb/ChangeLog:
>
> * x86-nat.h (x86_debug_reg_state): Move declaration to...
> * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
>
> gdb/gdbserver/ChangeLog:
>
> * linux-x86-low.c (x86_debug_reg_state): New function.
> (x86_linux_prepare_to_resume): Use the above.
OK.
Thanks,
Pedro Alves