diff options
author | Yao Qi <yao.qi@linaro.org> | 2018-01-30 14:41:17 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2018-02-07 09:56:49 +0000 |
commit | aa3a1b12baa9b28f038b9495ab4b3e6eb9750e96 (patch) | |
tree | 1f0a7686e71c577aa6386c7133771a6f134b4a91 /gdb/ia64-tdep.c | |
parent | 9d8da229109644f66a2ecf933ed3ad23c51c786f (diff) | |
download | gdb-users/qiyao/regcache-split-4-2.zip gdb-users/qiyao/regcache-split-4-2.tar.gz gdb-users/qiyao/regcache-split-4-2.tar.bz2 |
Pass readable_regcache to gdbarch method read_pcusers/qiyao/regcache-split-4-2
We can pass readable_regcache to gdbarch method read_pc where it is
allowed to do read from regcache.
gdb:
2018-01-30 Yao Qi <yao.qi@linaro.org>
* avr-tdep.c (avr_read_pc): Change parameter type to
readable_regcache.
* gdbarch.sh (read_pc): Likewise.
* gdbarch.c: Re-generated.
* gdbarch.h: Re-generated.
* hppa-tdep.c (hppa_read_pc): Change parameter type to
readable_regcache.
* ia64-tdep.c (ia64_read_pc): Likewise.
* mips-tdep.c (mips_read_pc): Likewise.
* spu-tdep.c (spu_read_pc): Likewise.
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r-- | gdb/ia64-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 6c9b341..4f02f05 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -876,13 +876,13 @@ ia64_breakpoint_from_pc (struct gdbarch *gdbarch, } static CORE_ADDR -ia64_read_pc (struct regcache *regcache) +ia64_read_pc (readable_regcache *regcache) { ULONGEST psr_value, pc_value; int slot_num; - regcache_cooked_read_unsigned (regcache, IA64_PSR_REGNUM, &psr_value); - regcache_cooked_read_unsigned (regcache, IA64_IP_REGNUM, &pc_value); + regcache->cooked_read (IA64_PSR_REGNUM, &psr_value); + regcache->cooked_read (IA64_IP_REGNUM, &pc_value); slot_num = (psr_value >> 41) & 3; return pc_value | (slot_num * SLOT_MULTIPLIER); |