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.
This commit is contained in:
Michael Snyder 2011-02-26 23:49:19 +00:00
parent e5b3d7d6f3
commit 6d5e094a2b
2 changed files with 5 additions and 4 deletions

View file

@ -1,7 +1,8 @@
2011-02-26 Michael Snyder <msnyder@vmware.com>
* i387-tdep.c (i387_supply_xsave): Avoid shadowing a function
* i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
param with a local variable of the same name.
(i387_supply_xsave): Ditto.
* linux-low.c (linux_nat_xfer_osdata): Rename local variable so
that it does not shadow a function parameter.

View file

@ -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 */