* amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
authorAndrey Smirnov <ndreys@sourceware.org>
Sun, 11 Dec 2011 02:41:31 +0000 (02:41 +0000)
committerAndrey Smirnov <ndreys@sourceware.org>
Sun, 11 Dec 2011 02:41:31 +0000 (02:41 +0000)
`idx'(-Wshadow).

gdb/ChangeLog
gdb/amd64-tdep.c

index ea30ffb0fe7b10dd2bf0fddd45ff3f724f1aaa2f..3f7a5fa20d13130de45dd3bc44e0b3a5925f8a2c 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
+
+       * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
+       `idx'(-Wshadow).
+
 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
 
        * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
index 803a20f1a7e493c6b81748c6bd3e444be55b4967..987f80db14d4ae668d6d842012a5081428ef8e62 100644 (file)
@@ -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
        {