diff options
author | Alan Hayward <alan.hayward@arm.com> | 2018-06-11 10:09:16 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2018-06-11 10:09:16 +0100 |
commit | 9c861883169cb9eec4581ab6db3a1b711e79ee10 (patch) | |
tree | 24530802092757d9aaf0e0f93e0e7cae3507aa8d /include/alloca-conf.h | |
parent | 953edf2b6cfe765ca7176c414e9f63aa62bdb09c (diff) | |
download | gdb-9c861883169cb9eec4581ab6db3a1b711e79ee10.zip gdb-9c861883169cb9eec4581ab6db3a1b711e79ee10.tar.gz gdb-9c861883169cb9eec4581ab6db3a1b711e79ee10.tar.bz2 |
Add reg_buffer_common
A purely virtual class containing functions from gdb/regcache.h
Both the gdb regcache structures and gdbserver regcache inherit
directly from reg_buffer_common. This will allow for common
functions which require the use of a regcache.
gdb/
* common/common-regcache.h (reg_buffer_common): New structure.
* regcache.c (reg_buffer::invalidate): Move from detached_regcache.
(reg_buffer::raw_supply): Likewise.
(reg_buffer::raw_supply_integer): Likewise.
(reg_buffer::raw_supply_zeroed): Likewise.
(reg_buffer::raw_collect): Likewise.
(reg_buffer::raw_collect_integer): Likewise.
* regcache.h (reg_buffer::invalidate): Move from detached_regcache.
(reg_buffer::raw_supply): Likewise.
(reg_buffer::raw_supply_integer): Likewise.
(reg_buffer::raw_supply_zeroed): Likewise.
(reg_buffer::raw_collect): Likewise.
(reg_buffer::raw_collect_integer): Likewise.
gdbserver/
* regcache.c (new_register_cache): Use new.
(free_register_cache): Use delete.
(register_data): Use const.
(supply_register): Move body inside regcache.
(regcache::raw_supply): New override function.
(collect_register): Move body inside regcache.
(regcache::raw_collect): New override function.
(regcache::get_register_status): New override function.
* regcache.h (struct regcache): Inherit from reg_buffer_common.
Diffstat (limited to 'include/alloca-conf.h')
0 files changed, 0 insertions, 0 deletions