From: Andrey Smirnov Date: Sun, 11 Dec 2011 02:41:31 +0000 (+0000) Subject: * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d48ebb5b06f1075b5689a57ca1f027ce4a782921;p=binutils-gdb.git * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to `idx'(-Wshadow). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ea30ffb0fe7..3f7a5fa20d1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-12-10 Andrey Smirnov + + * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to + `idx'(-Wshadow). + 2011-12-10 Andrey Smirnov * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 803a20f1a7e..987f80db14d 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -1081,9 +1081,9 @@ amd64_get_unused_input_int_reg (const struct amd64_insn *details) if (have_sib) { int base = SIB_BASE_FIELD (details->raw_insn[details->modrm_offset + 1]); - int index = SIB_INDEX_FIELD (details->raw_insn[details->modrm_offset + 1]); + int idx = SIB_INDEX_FIELD (details->raw_insn[details->modrm_offset + 1]); used_regs_mask |= 1 << base; - used_regs_mask |= 1 << index; + used_regs_mask |= 1 << idx; } else {