mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
* i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
instead of regcache_raw_supply when storing the registers.
This commit is contained in:
@ -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
|
||||
|
@ -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. */
|
||||
|
Reference in New Issue
Block a user