diff options
author | Yao Qi <yao.qi@linaro.org> | 2018-01-22 11:02:49 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2018-01-22 11:02:49 +0000 |
commit | 03f50fc878f75fcdebf0e3273f201fb4b62b0bae (patch) | |
tree | ff0d317fe0e2f6c91c569681785a1d26a11d33bb /gdb/sh64-tdep.c | |
parent | dc71152484248c0d8075618ec2146db4ea173b12 (diff) | |
download | gdb-03f50fc878f75fcdebf0e3273f201fb4b62b0bae.zip gdb-03f50fc878f75fcdebf0e3273f201fb4b62b0bae.tar.gz gdb-03f50fc878f75fcdebf0e3273f201fb4b62b0bae.tar.bz2 |
Replace regcache_raw_read with regcache->raw_read
The patch later in this series will move regcache's raw_read and
cooked_read methods to a new class regcache_read, and regcache is
dervied from it. Also pass regcache_read instead of regcache to gdbarch
methods pseudo_register_read and pseudo_register_read_value. In order
to prepare for this change, this patch changes regcache_raw_read to
regcache->raw_read. On the other hand, since we are in C++, I prefer
using class method (regcache->raw_read).
gdb:
2018-01-22 Yao Qi <yao.qi@linaro.org>
* aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
method raw_read instead of regcache_raw_read.
* amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
* arm-tdep.c (arm_neon_quad_read): Likewise.
* avr-tdep.c (avr_pseudo_register_read): Likewise.
* bfin-tdep.c (bfin_pseudo_register_read): Likewise.
* frv-tdep.c (frv_pseudo_register_read): Likewise.
* h8300-tdep.c (h8300_pseudo_register_read): Likewise.
* i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
(i386_pseudo_register_read_into_value): Likewise.
* mep-tdep.c (mep_pseudo_cr32_read): Likewise.
* msp430-tdep.c (msp430_pseudo_register_read): Likewise.
* nds32-tdep.c (nds32_pseudo_register_read): Likewise.
* rl78-tdep.c (rl78_pseudo_register_read): Likewise.
* s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
* sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
* sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
* spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
* xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
Diffstat (limited to 'gdb/sh64-tdep.c')
-rw-r--r-- | gdb/sh64-tdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c index ad533c9..5da517a 100644 --- a/gdb/sh64-tdep.c +++ b/gdb/sh64-tdep.c @@ -1516,7 +1516,7 @@ pseudo_register_read_portions (struct gdbarch *gdbarch, gdb_byte *b; b = buffer + register_size (gdbarch, base_regnum) * portion; - status = regcache_raw_read (regcache, base_regnum + portion, b); + status = regcache->raw_read (base_regnum + portion, b); if (status != REG_VALID) return status; } @@ -1587,7 +1587,7 @@ sh64_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, base_regnum = sh64_compact_reg_base_num (gdbarch, reg_nr); /* Build the value in the provided buffer. */ - status = regcache_raw_read (regcache, base_regnum, temp_buffer); + status = regcache->raw_read (base_regnum, temp_buffer); if (status != REG_VALID) return status; if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) @@ -1605,7 +1605,7 @@ sh64_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, /* Build the value in the provided buffer. */ /* Floating point registers map 1-1 to the media fp regs, they have the same size and endianness. */ - return regcache_raw_read (regcache, base_regnum, buffer); + return regcache->raw_read (base_regnum, buffer); } else if (reg_nr >= DR0_C_REGNUM @@ -1692,7 +1692,7 @@ sh64_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, /* FPUL_C register is floating point register 32, same size, same endianness. */ - return regcache_raw_read (regcache, base_regnum, buffer); + return regcache->raw_read (base_regnum, buffer); } else gdb_assert_not_reached ("invalid pseudo register number"); |