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/amd64-obsd-nat.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/amd64-obsd-nat.c')
-rw-r--r-- | gdb/amd64-obsd-nat.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/amd64-obsd-nat.c b/gdb/amd64-obsd-nat.c index 0e89e3f..c0d6a33 100644 --- a/gdb/amd64-obsd-nat.c +++ b/gdb/amd64-obsd-nat.c @@ -106,22 +106,22 @@ amd64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) { /* Yes, we have a frame that matches cpu_switch(). */ pcb->pcb_rsp += sizeof (struct switchframe); - regcache_raw_supply (regcache, 12, &sf.sf_r12); - regcache_raw_supply (regcache, 13, &sf.sf_r13); - regcache_raw_supply (regcache, 14, &sf.sf_r14); - regcache_raw_supply (regcache, 15, &sf.sf_r15); - regcache_raw_supply (regcache, AMD64_RBX_REGNUM, &sf.sf_rbx); - regcache_raw_supply (regcache, AMD64_RIP_REGNUM, &sf.sf_rip); + regcache->raw_supply (12, &sf.sf_r12); + regcache->raw_supply (13, &sf.sf_r13); + regcache->raw_supply (14, &sf.sf_r14); + regcache->raw_supply (15, &sf.sf_r15); + regcache->raw_supply (AMD64_RBX_REGNUM, &sf.sf_rbx); + regcache->raw_supply (AMD64_RIP_REGNUM, &sf.sf_rip); } else { /* No, the pcb must have been last updated by savectx(). */ pcb->pcb_rsp += 8; - regcache_raw_supply (regcache, AMD64_RIP_REGNUM, &sf); + regcache->raw_supply (AMD64_RIP_REGNUM, &sf); } - regcache_raw_supply (regcache, AMD64_RSP_REGNUM, &pcb->pcb_rsp); - regcache_raw_supply (regcache, AMD64_RBP_REGNUM, &pcb->pcb_rbp); + regcache->raw_supply (AMD64_RSP_REGNUM, &pcb->pcb_rsp); + regcache->raw_supply (AMD64_RBP_REGNUM, &pcb->pcb_rbp); return 1; } |