From 73e1c03f93f0294b464dc2b67de1f9aaae84838d Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 30 May 2018 14:54:45 -0400 Subject: 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. --- gdb/remote.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'gdb/remote.c') diff --git a/gdb/remote.c b/gdb/remote.c index 3aca5fb..3f0b678 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -7786,7 +7786,7 @@ remote_target::process_stop_reply (struct stop_reply *stop_reply, VEC_iterate (cached_reg_t, stop_reply->regcache, ix, reg); ix++) { - regcache_raw_supply (regcache, reg->num, reg->data); + regcache->raw_supply (reg->num, reg->data); xfree (reg->data); } @@ -8080,7 +8080,7 @@ remote_target::fetch_register_using_p (struct regcache *regcache, /* If this register is unfetchable, tell the regcache. */ if (buf[0] == 'x') { - regcache_raw_supply (regcache, reg->regnum, NULL); + regcache->raw_supply (reg->regnum, NULL); return 1; } @@ -8095,7 +8095,7 @@ remote_target::fetch_register_using_p (struct regcache *regcache, regp[i++] = fromhex (p[0]) * 16 + fromhex (p[1]); p += 2; } - regcache_raw_supply (regcache, reg->regnum, regp); + regcache->raw_supply (reg->regnum, regp); return 1; } @@ -8233,11 +8233,10 @@ remote_target::process_g_packet (struct regcache *regcache) gdb_assert (r->offset * 2 < strlen (rs->buf)); /* The register isn't available, mark it as such (at the same time setting the value to zero). */ - regcache_raw_supply (regcache, r->regnum, NULL); + regcache->raw_supply (r->regnum, NULL); } else - regcache_raw_supply (regcache, r->regnum, - regs + r->offset); + regcache->raw_supply (r->regnum, regs + r->offset); } } } @@ -8304,7 +8303,7 @@ remote_target::fetch_registers (struct regcache *regcache, int regnum) return; /* This register is not available. */ - regcache_raw_supply (regcache, reg->regnum, NULL); + regcache->raw_supply (reg->regnum, NULL); return; } @@ -8316,7 +8315,7 @@ remote_target::fetch_registers (struct regcache *regcache, int regnum) if (!fetch_register_using_p (regcache, &rsa->regs[i])) { /* This register is not available. */ - regcache_raw_supply (regcache, i, NULL); + regcache->raw_supply (i, NULL); } } -- cgit v1.1