This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] amd64: simplify addition of new general registers.


On 01/25/2017 10:13 AM, Walfred Tedeschi wrote:
> The purpose of this patch is only simplify the addition of new registers.
> ORIG_RAX is kept as last register an any addition is done right before it.
> 

s/an/and/

>  /* Register number for the "orig_rax" register.  If this register
>     contains a value >= 0 it is interpreted as the system call number
>     that the kernel is supposed to restart.  */
> -#define AMD64_LINUX_ORIG_RAX_REGNUM (AMD64_ZMM31H_REGNUM + 1)
> +#define AMD64_LINUX_ORIG_RAX_REGNUM (AMD64_NUM_REGS)

Remove now-unnecessary parens.

OK with that change.

>  
>  /* Total number of registers for GNU/Linux.  */
>  #define AMD64_LINUX_NUM_REGS (AMD64_LINUX_ORIG_RAX_REGNUM + 1)
> 

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]