This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/6] Class-fy regcache in GDB
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 25 Apr 2017 21:28:20 +0100
- Subject: [PATCH 0/6] Class-fy regcache in GDB
- Authentication-results: sourceware.org; auth=none
This patch set changes "struct regcache" to a class, that is, change all
regcache_* apis to regcache class methods. I am also thinking that add
a new class readonly_regcache, and regcache extends from it. However I
stopped here, because they are sufficient for me to do some other unit
tests. Note that this patch doesn't touch regcache in GDBserver.
The patch set is tested on x86_64-linux and ppc-linux (gcc110).
*** BLURB HERE ***
Yao Qi (6):
Change readonly_p to bool
Add constructor and destructor to regcache
Class-fy regcache
Simplify regcache_dup
Use copy ctor in regcache_dup
Remove cleanup in get_return_value
gdb/infcmd.c | 14 +-
gdb/regcache.c | 755 ++++++++++++++++++++++++++++++++-------------------------
gdb/regcache.h | 166 ++++++++++++-
gdb/target.c | 5 +-
4 files changed, 595 insertions(+), 345 deletions(-)
--
1.9.1