diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:36 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:36 -0400 |
commit | 0b8835861cde41744a08f215b48fccd135815b63 (patch) | |
tree | 222cba12875bd2e2df78b6ccfe5ad2e71e726e3a /gdb/m68k-tdep.c | |
parent | Remove regcache_raw_update (diff) | |
download | binutils-gdb-0b8835861cde41744a08f215b48fccd135815b63.tar.gz binutils-gdb-0b8835861cde41744a08f215b48fccd135815b63.tar.bz2 binutils-gdb-0b8835861cde41744a08f215b48fccd135815b63.zip |
Remove regcache_raw_read
Remove regcache_raw_read, update all callers to use
readable_regcache::raw_read instead.
gdb/ChangeLog:
* regcache.h (regcache_raw_read): Remove, update callers to use
readable_regcache::raw_read instead.
* regcache.c (regcache_raw_read): Remove.
Diffstat (limited to 'gdb/m68k-tdep.c')
-rw-r--r-- | gdb/m68k-tdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index b9fa5e6d4cf..a6a1bb498b2 100644 --- a/gdb/m68k-tdep.c +++ b/gdb/m68k-tdep.c @@ -286,14 +286,14 @@ m68k_extract_return_value (struct type *type, struct regcache *regcache, if (len <= 4) { - regcache_raw_read (regcache, M68K_D0_REGNUM, buf); + regcache->raw_read (M68K_D0_REGNUM, buf); memcpy (valbuf, buf + (4 - len), len); } else if (len <= 8) { - regcache_raw_read (regcache, M68K_D0_REGNUM, buf); + regcache->raw_read (M68K_D0_REGNUM, buf); memcpy (valbuf, buf + (8 - len), len - 4); - regcache_raw_read (regcache, M68K_D1_REGNUM, valbuf + (len - 4)); + regcache->raw_read (M68K_D1_REGNUM, valbuf + (len - 4)); } else internal_error (__FILE__, __LINE__, @@ -311,11 +311,11 @@ m68k_svr4_extract_return_value (struct type *type, struct regcache *regcache, if (tdep->float_return && TYPE_CODE (type) == TYPE_CODE_FLT) { struct type *fpreg_type = register_type (gdbarch, M68K_FP0_REGNUM); - regcache_raw_read (regcache, M68K_FP0_REGNUM, buf); + regcache->raw_read (M68K_FP0_REGNUM, buf); target_float_convert (buf, fpreg_type, valbuf, type); } else if (TYPE_CODE (type) == TYPE_CODE_PTR && TYPE_LENGTH (type) == 4) - regcache_raw_read (regcache, M68K_A0_REGNUM, valbuf); + regcache->raw_read (M68K_A0_REGNUM, valbuf); else m68k_extract_return_value (type, regcache, valbuf); } |