diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:45 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:45 -0400 |
commit | 73e1c03f93f0294b464dc2b67de1f9aaae84838d (patch) | |
tree | 723ab692f6e43ff44e8ece53bdb5cff45cc576e0 /gdb/mips-nbsd-tdep.c | |
parent | e4c4a59b48b2cec10cffac4f562937de00cb5f3f (diff) | |
download | gdb-73e1c03f93f0294b464dc2b67de1f9aaae84838d.zip gdb-73e1c03f93f0294b464dc2b67de1f9aaae84838d.tar.gz gdb-73e1c03f93f0294b464dc2b67de1f9aaae84838d.tar.bz2 |
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.
Diffstat (limited to 'gdb/mips-nbsd-tdep.c')
-rw-r--r-- | gdb/mips-nbsd-tdep.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gdb/mips-nbsd-tdep.c b/gdb/mips-nbsd-tdep.c index d805f0d..5a14b2f 100644 --- a/gdb/mips-nbsd-tdep.c +++ b/gdb/mips-nbsd-tdep.c @@ -64,8 +64,7 @@ mipsnbsd_supply_fpregset (const struct regset *regset, for (i = MIPS_FP0_REGNUM; i <= MIPS_FSR_REGNUM; i++) { if (regnum == i || regnum == -1) - regcache_raw_supply (regcache, i, - regs + (i - MIPS_FP0_REGNUM) * regsize); + regcache->raw_supply (i, regs + (i - MIPS_FP0_REGNUM) * regsize); } } @@ -87,7 +86,7 @@ mipsnbsd_supply_gregset (const struct regset *regset, for (i = 0; i <= MIPS_PC_REGNUM; i++) { if (regnum == i || regnum == -1) - regcache_raw_supply (regcache, i, regs + i * regsize); + regcache->raw_supply (i, regs + i * regsize); } if (len >= (MIPSNBSD_NUM_GREGS + MIPSNBSD_NUM_FPREGS) * regsize) @@ -145,10 +144,10 @@ mipsnbsd_supply_reg (struct regcache *regcache, const char *regs, int regno) if (regno == i || regno == -1) { if (gdbarch_cannot_fetch_register (gdbarch, i)) - regcache_raw_supply (regcache, i, NULL); + regcache->raw_supply (i, NULL); else - regcache_raw_supply (regcache, i, - regs + (i * mips_isa_regsize (gdbarch))); + regcache->raw_supply + (i, regs + (i * mips_isa_regsize (gdbarch))); } } } @@ -180,10 +179,10 @@ mipsnbsd_supply_fpreg (struct regcache *regcache, if (regno == i || regno == -1) { if (gdbarch_cannot_fetch_register (gdbarch, i)) - regcache_raw_supply (regcache, i, NULL); + regcache->raw_supply (i, NULL); else - regcache_raw_supply (regcache, i, - fpregs + regcache->raw_supply (i, + fpregs + ((i - gdbarch_fp0_regnum (gdbarch)) * mips_isa_regsize (gdbarch))); } |