Remove regcache_descr fields sizeof_raw_register_status and sizeof_cooked_register_status
authorYao Qi <yao.qi@linaro.org>
Thu, 2 Nov 2017 15:05:12 +0000 (15:05 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 2 Nov 2017 15:05:12 +0000 (15:05 +0000)
commit6c5218dfdb7b38cc1617be7753cc1ec6d0612382
tree2f43c891ef705d895538734d0fa48b8de4432ef6
parent852735806aa4343ba4bbe89656041800cf482918
Remove regcache_descr fields sizeof_raw_register_status and sizeof_cooked_register_status

struct regcache_descr has two fields sizeof_raw_register_status
and sizeof_cooked_register_status, but they equal to nr_cooked_registers
and nr_raw_registers respectively, so this patch removes them.

gdb:

2017-11-02  Yao Qi  <yao.qi@linaro.org>

* regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
Remove.
<sizeof_cooked_register_status>: Remove.
(init_regcache_descr): Update.
(regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
(regcache::save): Likewise.
(regcache::dump): Likewise.
gdb/ChangeLog
gdb/regcache.c