Simplify regcache::xfer_part

Since xfer_part is already a class method, and only
{raw,cooked}_{read,write} are passed to it.  We can remove these two
arguments, but add a bool argument is_raw, indicating raw registers or
cooked registers are accessed.

gdb:

2017-10-17  Yao Qi  <yao.qi@linaro.org>

	* regcache.c (regcache::xfer_part): Remove parameters read and
	write, add parameter is_raw.  All callers are updated.
This commit is contained in:
Yao Qi
2017-10-17 12:29:26 +01:00
parent 7a7cdfa04b
commit d3037ba6a3
3 changed files with 19 additions and 20 deletions

View File

@@ -354,9 +354,7 @@ private:
void restore (struct regcache *src);
enum register_status xfer_part (int regnum, int offset, int len, void *in,
const void *out,
decltype (regcache_raw_read) read,
decltype (regcache_raw_write) write);
const void *out, bool is_raw);
void transfer_regset (const struct regset *regset,
struct regcache *out_regcache,