diff options
author | Andrey Smirnov <ndreys@sourceware.org> | 2011-12-11 02:41:31 +0000 |
---|---|---|
committer | Andrey Smirnov <ndreys@sourceware.org> | 2011-12-11 02:41:31 +0000 |
commit | d48ebb5b06f1075b5689a57ca1f027ce4a782921 (patch) | |
tree | 5a19eb891aa7bae7717e6c17f9f99b95f8fb8d23 /gdb | |
parent | 9ed936ec4704c1d9347f89f25009260f384062e9 (diff) | |
download | gdb-d48ebb5b06f1075b5689a57ca1f027ce4a782921.zip gdb-d48ebb5b06f1075b5689a57ca1f027ce4a782921.tar.gz gdb-d48ebb5b06f1075b5689a57ca1f027ce4a782921.tar.bz2 |
* amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
`idx'(-Wshadow).
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/amd64-tdep.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ea30ffb..3f7a5fa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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 `syscall' to `syscall_number'(-Wshadow). diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 803a20f..987f80d 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 { |