mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 18:44:20 +08:00
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.
This commit is contained in:
parent
5eee517dae
commit
e5b3d7d6f3
@ -1,5 +1,8 @@
|
||||
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.
|
||||
|
||||
* linux-low.c (linux_nat_xfer_osdata): Rename local variable so
|
||||
that it does not shadow a function parameter.
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user