forked from Imagelibrary/binutils-gdb
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user