New method regcache::assert_regnum
authorYao Qi <yao.qi@linaro.org>
Thu, 2 Nov 2017 15:15:41 +0000 (15:15 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 2 Nov 2017 15:15:41 +0000 (15:15 +0000)
commit4e888c281cd19f019248bd165d7055af88641c80
treefe7a19cd3bfdc9b56724c6364b457f9c7a7de966
parent2e1b49b32ab9aec1aca94f424cbe275e5f6f9ab4
New method regcache::assert_regnum

class regcache has some methods checking the range of register number,
this patch is to move it in a new method assert_regnum.

gdb:

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

* regcache.c (regcache::assert_regnum): New method.
(regcache::invalidate): Call assert_regnum.
(regcache::raw_update): Likewise.
(regcache::raw_write): Likewise.
(regcache::raw_read_part): Likewise.
(regcache::raw_write_part): Likewise.
(regcache::raw_supply): Likewise.
(regcache::raw_supply_integer): Likewise.
(regcache::raw_supply_zeroed): Likewise.
(regcache::raw_collect): Likewise.
(regcache::raw_collect_integer): Likewise.
* regcache.h (regcache::assert_regnum): Declare.
gdb/ChangeLog
gdb/regcache.c
gdb/regcache.h