Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/6] Class-fy regcache in GDB
@ 2017-04-25 20:28 Yao Qi
  2017-04-25 20:28 ` [PATCH 2/6] Add constructor and destructor to regcache Yao Qi
                   ` (6 more replies)
  0 siblings, 7 replies; 24+ messages in thread
From: Yao Qi @ 2017-04-25 20:28 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-04-28 21:44 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-25 20:28 [PATCH 0/6] Class-fy regcache in GDB Yao Qi
2017-04-25 20:28 ` [PATCH 2/6] Add constructor and destructor to regcache Yao Qi
2017-04-27 17:34   ` Pedro Alves
2017-04-28 13:42     ` Yao Qi
2017-04-25 20:28 ` [PATCH 4/6] Simplify regcache_dup Yao Qi
2017-04-25 20:28 ` [PATCH 6/6] Remove cleanup in get_return_value Yao Qi
2017-04-25 20:28 ` [PATCH 1/6 OBV] Change readonly_p to bool Yao Qi
2017-04-25 20:29 ` [PATCH 5/6] Use copy ctor in regcache_dup Yao Qi
2017-04-27 17:37   ` Pedro Alves
2017-04-28  9:11     ` Yao Qi
2017-04-28  9:51       ` Pedro Alves
2017-04-28 13:20         ` Yao Qi
2017-04-25 20:29 ` [PATCH 3/6] Class-fy regcache Yao Qi
2017-04-27 17:35   ` Pedro Alves
2017-04-28 14:26 ` [PATCH 0/4 v2] Class-fy regcache in GDB Yao Qi
2017-04-28 14:26   ` [PATCH 4/4] Remove cleanup in get_return_value Yao Qi
2017-04-28 15:05     ` Pedro Alves
2017-04-28 14:26   ` [PATCH 3/4] Use tag dispatch regcache ctor in regcache_dup Yao Qi
2017-04-28 15:04     ` Pedro Alves
2017-04-28 14:26   ` [PATCH 1/4] Class-fy regcache Yao Qi
2017-04-28 15:03     ` Pedro Alves
2017-04-28 21:44       ` Yao Qi
2017-04-28 14:26   ` [PATCH 2/4] Simplify regcache_dup Yao Qi
2017-04-28 15:03     ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox