summaryrefslogtreecommitdiff
path: root/gdb/i387-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2011-02-26 23:45:01 +0000
committerMichael Snyder <msnyder@specifix.com>2011-02-26 23:45:01 +0000
commit7de7ee7de60cb8acf6d169d9de07bbaa7e521b3b (patch)
tree6871b36303bb9bc7b8761cf1922e3364b637e102 /gdb/i387-tdep.c
parent727b3aaa6c744f9a47c06ad1bb209a277d6eef8f (diff)
downloadgdb-7de7ee7de60cb8acf6d169d9de07bbaa7e521b3b.tar.gz
2011-02-26 Michael Snyder <msnyder@vmware.com>
* i387-tdep.c (i387_supply_xsave): Avoid shadowing a function param with a local variable of the same name.
Diffstat (limited to 'gdb/i387-tdep.c')
-rw-r--r--gdb/i387-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c
index 7ec7f535c13..826746667ed 100644
--- a/gdb/i387-tdep.c
+++ b/gdb/i387-tdep.c
@@ -882,9 +882,9 @@ i387_supply_xsave (struct regcache *regcache, int regnum,
if (val[0] & (1 << fpreg))
{
- int regnum = (fpreg + 8 - top) % 8
+ int thisreg = (fpreg + 8 - top) % 8
+ I387_ST0_REGNUM (tdep);
- tag = i387_tag (FXSAVE_ADDR (tdep, regs, regnum));
+ tag = i387_tag (FXSAVE_ADDR (tdep, regs, thisreg));
}
else
tag = 3; /* Empty */