* i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect

instead of regcache_raw_supply when storing the registers.
This commit is contained in:
Mark Kettenis
2004-08-08 15:03:13 +00:00
parent f6052080a0
commit 9b8607ced1
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2004-08-08 Mark Kettenis <kettenis@gnu.org>
* i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
instead of regcache_raw_supply when storing the registers.
* i386gnu-nat.c: Update copyright year.
(gnu_store_registers): Don't use deprecated_registers and
deprecated_registers_valid. Use regcache_valid_p and

View File

@ -267,14 +267,14 @@ gnu_store_registers (int regno)
for (i = 0; i < I386_NUM_GREGS; i++)
if (regcache_valid_p (regcache, i))
regcache_raw_supply (regcache, i, REG_ADDR (state, i));
regcache_raw_collect (regcache, i, REG_ADDR (state, i));
}
else
{
proc_debug (thread, "storing register %s", REGISTER_NAME (regno));
gdb_assert (regcache_valid_p (regcache, regno));
regcache_raw_supply (regcache, regno, REG_ADDR (state, regno));
regcache_craw_collect (regcache, regno, REG_ADDR (state, regno));
}
/* Restore the T bit. */