aboutsummaryrefslogtreecommitdiff
path: root/gdb/nios2-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/nios2-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/nios2-tdep.c')
-rw-r--r--gdb/nios2-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/nios2-tdep.c b/gdb/nios2-tdep.c
index f6088f3..e1cbd97 100644
--- a/gdb/nios2-tdep.c
+++ b/gdb/nios2-tdep.c
@@ -207,13 +207,13 @@ nios2_extract_return_value (struct gdbarch *gdbarch, struct type *valtype,
/* Return values of up to 8 bytes are returned in $r2 $r3. */
if (len <= register_size (gdbarch, NIOS2_R2_REGNUM))
- regcache_cooked_read (regcache, NIOS2_R2_REGNUM, valbuf);
+ regcache->cooked_read (NIOS2_R2_REGNUM, valbuf);
else
{
gdb_assert (len <= (register_size (gdbarch, NIOS2_R2_REGNUM)
+ register_size (gdbarch, NIOS2_R3_REGNUM)));
- regcache_cooked_read (regcache, NIOS2_R2_REGNUM, valbuf);
- regcache_cooked_read (regcache, NIOS2_R3_REGNUM, valbuf + 4);
+ regcache->cooked_read (NIOS2_R2_REGNUM, valbuf);
+ regcache->cooked_read (NIOS2_R3_REGNUM, valbuf + 4);
}
}