Remove regcache_raw_supply

Remove regcache_raw_supply, update callers to use
detached_regcache::raw_supply.

gdb/ChangeLog:

	* regcache.h (regcache_raw_supply): Remove, update callers to
	use detached_regcache::raw_supply.
	* regcache.c (regcache_raw_supply): Remove.
This commit is contained in:
Simon Marchi 2018-05-30 14:54:45 -04:00
parent e4c4a59b48
commit 73e1c03f93
88 changed files with 580 additions and 658 deletions

View file

@ -138,7 +138,7 @@ gnu_fetch_registers (struct target_ops *ops,
proc_debug (thread, "fetching all register");
for (i = 0; i < I386_NUM_GREGS; i++)
regcache_raw_supply (regcache, i, REG_ADDR (state, i));
regcache->raw_supply (i, REG_ADDR (state, i));
thread->fetched_regs = ~0;
}
else
@ -147,8 +147,7 @@ gnu_fetch_registers (struct target_ops *ops,
gdbarch_register_name (regcache->arch (),
regno));
regcache_raw_supply (regcache, regno,
REG_ADDR (state, regno));
regcache->raw_supply (regno, REG_ADDR (state, regno));
thread->fetched_regs |= (1 << regno);
}
}
@ -250,8 +249,8 @@ gnu_store_registers (struct target_ops *ops,
gdbarch_register_name (gdbarch, check_regno));
if (regno >= 0 && regno != check_regno)
/* Update GDB's copy of the register. */
regcache_raw_supply (regcache, check_regno,
REG_ADDR (state, check_regno));
regcache->raw_supply (check_regno,
REG_ADDR (state, check_regno));
else
warning (_("... also writing this register! "
"Suspicious..."));