diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-11-02 15:15:41 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-11-02 15:15:41 +0000 |
commit | d999647bc427ce2e083c4449b683705449d0bb58 (patch) | |
tree | ee37ea0b2296eae7da25fa8d127e88978dc544fd /COPYING3.LIB | |
parent | 4e888c281cd19f019248bd165d7055af88641c80 (diff) | |
download | gdb-d999647bc427ce2e083c4449b683705449d0bb58.zip gdb-d999647bc427ce2e083c4449b683705449d0bb58.tar.gz gdb-d999647bc427ce2e083c4449b683705449d0bb58.tar.bz2 |
Remove regcache_descr::nr_raw_registers
struct regcache_descr has fields nr_raw_registers and gdbarch, and
nr_raw_registers can be got via gdbarch_num_regs (gdbarch), so it looks
nr_raw_registers is redundant. This patch removes it and adds a protected
method num_raw_registers.
gdb:
2017-11-02 Yao Qi <yao.qi@linaro.org>
* regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
(init_regcache_descr): Use gdbarch_num_regs.
(regcache::regcache): Likewise.
(regcache::get_register_status): Likewise.
(regcache::assert_raw_regnum): Likewise.
(regcache::cooked_read): Likewise.
(regcache::cooked_read_value): Likewise.
(regcache::cooked_write): Likewise.
(regcache::dump): Likewise.
(regcache::num_raw_registers): New method.
* regcache.h (class regcache) <num_raw_registers>: New.
Diffstat (limited to 'COPYING3.LIB')
0 files changed, 0 insertions, 0 deletions