[PATCH 0/8] regcache misc cleanup and refactor

Yao Qi
2017-10-27T09:31:52Z

During the work of regcache rewriting, I find there are some minor
cleanups and refactors can go upstream first. Each patch is quite
self-contained, but they may be dependent to previous patches in
this series, so I put all of them in one patch set.

Rebuild GDB with every patch applied accumulatively, and regress
tested on x86_64-linux.

*** BLURB HERE ***

Yao Qi (8):
Remove regcache_descr fields sizeof_raw_register_status and
sizeof_cooked_register_status
Remove code wrapped by "#if 0"
New method regcache::assert_regnum
Remove regcache_descr::nr_raw_registers
s/get_regcache_aspace (regcache)/regcache->aspace ()/g
const-fy regcache::m_aspace
const-fy regcache::m_readonly_p
Construct readonly regcache without address space

gdb/darwin-nat.c | 2 +-
gdb/frame.c | 5 ++-
gdb/infrun.c | 42 ++++++++++++-------------
gdb/jit.c | 4 +--
gdb/linux-nat.c | 8 ++---
gdb/ppc-linux-tdep.c | 5 ++-
gdb/record-full.c | 7 ++---
gdb/regcache.c | 88 +++++++++++++++++++---------------------------------
gdb/regcache.h | 20 ++++++------
9 files changed, 75 insertions(+), 106 deletions(-)

--
1.9.1