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/i386-darwin-nat.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gdb/i386-darwin-nat.c') diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c index 03adb20..2dbf95f 100644 --- a/gdb/i386-darwin-nat.c +++ b/gdb/i386-darwin-nat.c @@ -132,9 +132,8 @@ i386_darwin_nat_target::fetch_registers (struct regcache *regcache, int regno) MACH_CHECK_ERROR (ret); } for (i = 0; i < I386_NUM_GREGS; i++) - regcache_raw_supply - (regcache, i, - (char *)&gp_regs + i386_darwin_thread_state_reg_offset[i]); + regcache->raw_supply + (i, (char *) &gp_regs + i386_darwin_thread_state_reg_offset[i]); fetched++; } @@ -164,7 +163,7 @@ i386_darwin_nat_target::fetch_registers (struct regcache *regcache, int regno) if (! fetched) { warning (_("unknown register %d"), regno); - regcache_raw_supply (regcache, regno, NULL); + regcache->raw_supply (regno, NULL); } } -- cgit v1.1