This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] amd64: remove additional comparison for validity of a register number.
- From: Pedro Alves <palves at redhat dot com>
- To: Walfred Tedeschi <walfred dot tedeschi at intel dot com>, qiyaoltc at gmail dot com, brobecker at adacore dot com
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 25 Jan 2017 15:05:05 +0000
- Subject: Re: [PATCH] amd64: remove additional comparison for validity of a register number.
- Authentication-results: sourceware.org; auth=none
- References: <1485339204-7045-1-git-send-email-walfred.tedeschi@intel.com>
On 01/25/2017 10:13 AM, Walfred Tedeschi wrote:
> Second part of the && is already guaranteed in the "regnum < num_regs"
> due to comparison above.
>
> 2017-01-24 Walfred Tedeschi <walfred.tedeschi@intel.com>
Spaces around the name, not tabs.
>
> * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
> that checks validity of a register number.
OK.
Thanks,
Pedro Alves