This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/6] Class-fy regcache in GDB


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]