From b66f5587de2a096f357124b20376b2bab980238b Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 30 May 2018 14:54:42 -0400 Subject: Remove regcache_cooked_write Remove regcache_cooked_write, update callers to use regcache::cooked_write. gdb/ChangeLog: * regcache.h (regcache_cooked_write): Remove, update callers to use regcache::cooked_write. * regcache.c (regcache_cooked_write): Remove. --- gdb/s390-tdep.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'gdb/s390-tdep.c') diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index 8a82fb9..eaf1550 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -1800,12 +1800,10 @@ s390_handle_arg (struct s390_arg_state *as, struct value *arg, { if (write_mode) { - regcache_cooked_write (as->regcache, - S390_R0_REGNUM + as->gr, - value_contents (arg)); - regcache_cooked_write (as->regcache, - S390_R0_REGNUM + as->gr + 1, - value_contents (arg) + word_size); + as->regcache->cooked_write (S390_R0_REGNUM + as->gr, + value_contents (arg)); + as->regcache->cooked_write (S390_R0_REGNUM + as->gr + 1, + value_contents (arg) + word_size); } as->gr += 2; } @@ -2018,9 +2016,8 @@ s390_register_return_value (struct gdbarch *gdbarch, struct type *type, /* Double word: in r2 and r3. */ if (in != NULL) { - regcache_cooked_write (regcache, S390_R2_REGNUM, in); - regcache_cooked_write (regcache, S390_R3_REGNUM, - in + word_size); + regcache->cooked_write (S390_R2_REGNUM, in); + regcache->cooked_write (S390_R3_REGNUM, in + word_size); } else { -- cgit v1.1