aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2018-05-30 14:54:38 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2018-05-30 14:54:38 -0400
commitdca08e1fe158d04517ba3ddd7ece9dd1596c8e8c (patch)
tree681b64140760ae67e7607002b451168fb19db776 /gdb/s390-tdep.c
parent10eaee5f56611ce5f92ccd305849c0cc6addd130 (diff)
downloadgdb-dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c.zip
gdb-dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c.tar.gz
gdb-dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c.tar.bz2
Remove regcache_cooked_read
Remove regcache_cooked_read, update callers to use readable_regcache::cooked_read instead. gdb/ChangeLog: * regcache.h (regcache_cooked_read): Remove, update callers to use readable_regcache::cooked_read instead. * regcache.c (regcache_cooked_read): Remove.
Diffstat (limited to 'gdb/s390-tdep.c')
-rw-r--r--gdb/s390-tdep.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index bbf696e..8a82fb9 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -2024,9 +2024,8 @@ s390_register_return_value (struct gdbarch *gdbarch, struct type *type,
}
else
{
- regcache_cooked_read (regcache, S390_R2_REGNUM, out);
- regcache_cooked_read (regcache, S390_R3_REGNUM,
- out + word_size);
+ regcache->cooked_read (S390_R2_REGNUM, out);
+ regcache->cooked_read (S390_R3_REGNUM, out + word_size);
}
}
else
@@ -2814,7 +2813,7 @@ s390_record_calc_disp_vsce (struct gdbarch *gdbarch, struct regcache *regcache,
if (tdep->v0_full_regnum == -1 || el * es >= 16)
return -1;
if (vx < 16)
- regcache_cooked_read (regcache, tdep->v0_full_regnum + vx, buf);
+ regcache->cooked_read (tdep->v0_full_regnum + vx, buf);
else
regcache->raw_read (S390_V16_REGNUM + vx - 16, buf);
x = extract_unsigned_integer (buf + el * es, es, byte_order);