]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
New class reg_buffer
authorYao Qi <yao.qi@linaro.org>
Fri, 22 Sep 2017 13:02:38 +0000 (14:02 +0100)
committerYao Qi <yao.qi@linaro.org>
Fri, 13 Oct 2017 10:52:11 +0000 (11:52 +0100)
commit2d6f8f50b4d975bfebebb0990b423071f341a157
tree9e9bae4d2393e866d5db94f5d7aa76e4951eb836
parent9fa4f9dd3d0f4e7f35436ba6244f19e49e648aec
New class reg_buffer

This patch splits regcache, moves part of it to reg_buffer, which is a
buffer to hold register contents, and also their status.  reg_buffer may
or may not hold pseudo registers.  Class reg_buffer has methods supply and
collect.

gdb:

2017-09-22  Yao Qi  <yao.qi@linaro.org>
:
* regcache.c (regcache_descr):
(regcache_register_size):
(get_regcache_aspace):
(regcache::save):
(regcache::save):
(regcache::restore):
(regcache_register_status):
(regcache::get_register_status):
(regcache::invalidate):
(regcache::raw_update):
(regcache::raw_read):
(regcache::cooked_read):
(regcache::cooked_read_value):
(regcache_raw_set_cached_value):
(regcache_raw_supply):
(regcache::raw_supply):
(regcache::raw_supply_integer):
(regcache_raw_collect):
(regcache::raw_collect):
* regcache.h (typedef struct cached_reg):
(public:):
(public:):
(protected:):
(private:):
gdb/regcache.c
gdb/regcache.h