aboutsummaryrefslogtreecommitdiff
path: root/gdb/i387-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-02-26 23:49:19 +0000
committerMichael Snyder <msnyder@vmware.com>2011-02-26 23:49:19 +0000
commit6d5e094a2b4d9b6d1cbfc6b47490f1bc0b5ce13a (patch)
treeafd0053889b52176ba3875af46a246ac988932e3 /gdb/i387-tdep.c
parente5b3d7d6f3e1894c12b6c44f5c0cff472726eb31 (diff)
downloadgdb-6d5e094a2b4d9b6d1cbfc6b47490f1bc0b5ce13a.zip
gdb-6d5e094a2b4d9b6d1cbfc6b47490f1bc0b5ce13a.tar.gz
gdb-6d5e094a2b4d9b6d1cbfc6b47490f1bc0b5ce13a.tar.bz2
2011-02-26 Michael Snyder <msnyder@vmware.com>
* i387-tdep.c (i387_supply_fxsave): 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c
index 8267466..122bd83 100644
--- a/gdb/i387-tdep.c
+++ b/gdb/i387-tdep.c
@@ -587,9 +587,9 @@ i387_supply_fxsave (struct regcache *regcache, int regnum, const void *fxsave)
if (val[0] & (1 << fpreg))
{
- int regnum = (fpreg + 8 - top) % 8
- + I387_ST0_REGNUM (tdep);
- tag = i387_tag (FXSAVE_ADDR (tdep, regs, regnum));
+ int thisreg = (fpreg + 8 - top) % 8
+ + I387_ST0_REGNUM (tdep);
+ tag = i387_tag (FXSAVE_ADDR (tdep, regs, thisreg));
}
else
tag = 3; /* Empty */