This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v4 2/4] gdbserver: Prevent stale/random values in register cache
- From: Pedro Alves <palves at redhat dot com>
- To: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>, gdb-patches at sourceware dot org
- Date: Fri, 12 Dec 2014 12:13:58 +0000
- Subject: Re: [PATCH v4 2/4] gdbserver: Prevent stale/random values in register cache
- Authentication-results: sourceware.org; auth=none
- References: <1418379431-14407-1-git-send-email-arnez at linux dot vnet dot ibm dot com> <1418379431-14407-3-git-send-email-arnez at linux dot vnet dot ibm dot com>
On 12/12/2014 10:16 AM, Andreas Arnez wrote:
> When fetch_inferior_registers does not update all registers, this
> patch assures that no stale register values remain in the register
> cache. On Linux platforms using the regsets interface, when one of
> the ptrace calls used for fetching the register values returns an
> error, this patch also avoids copying the random data returned from
> ptrace into the register cache. All unfetched registers are marked
> "unavailable" instead.
Looks good to me.
Thanks,
Pedro Alves