This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[pushed 00/15] Remove some regcache functions
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Wed, 30 May 2018 15:03:38 -0400
- Subject: [pushed 00/15] Remove some regcache functions
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Since regcache has been C++ified/made into a class, most regcache_* functions
are simple trivial wrappers around the corresponding method. This series of
patches gets rid of them. There should not be any behavior change. I built
tested by cross-compiling for as many targets as I can with crosstool-ng and
used grep to try to catch all usages.
Some functions are not as trivial to remove so I'm keeping them for later. For
example, regcache_raw_write_signed could be replaced by regcache::raw_write
directly, but there may be some subtle behavior changes due to the fact that
raw_write is a templated method. So I'll send it for review later.
Simon Marchi (15):
Remove regcache_get_ptid
Remove regcache_register_status
Remove regcache_raw_update
Remove regcache_raw_read
Remove regcache_raw_write
Remove regcache_cooked_read
Remove regcache_raw_read_part
Remove regcache_raw_write_part
Remove regcache_invalidate
Remove regcache_cooked_write
Remove regcache_cooked_read_value
Remove regcache_cooked_read_part
Remove regcache_cooked_write_part
Remove regcache_raw_supply
Remove regcache_raw_collect
gdb/ChangeLog | 90 +++++++++++++
gdb/aarch32-linux-nat.c | 27 ++--
gdb/aarch64-fbsd-nat.c | 4 +-
gdb/aarch64-linux-nat.c | 40 +++---
gdb/aarch64-linux-tdep.c | 2 +-
gdb/aarch64-tdep.c | 36 +++---
gdb/aix-thread.c | 166 +++++++++++-------------
gdb/alpha-bsd-nat.c | 19 ++-
gdb/alpha-nbsd-tdep.c | 12 +-
gdb/alpha-tdep.c | 52 ++++----
gdb/amd64-bsd-nat.c | 12 +-
gdb/amd64-fbsd-nat.c | 24 ++--
gdb/amd64-linux-nat.c | 16 +--
gdb/amd64-linux-tdep.c | 2 +-
gdb/amd64-nat.c | 4 +-
gdb/amd64-obsd-nat.c | 18 +--
gdb/amd64-obsd-tdep.c | 8 +-
gdb/amd64-tdep.c | 56 ++++----
gdb/amd64-windows-tdep.c | 12 +-
gdb/arc-tdep.c | 2 +-
gdb/arch-utils.c | 2 +-
gdb/arm-bsd-tdep.c | 6 +-
gdb/arm-fbsd-nat.c | 4 +-
gdb/arm-linux-nat.c | 56 ++++----
gdb/arm-linux-tdep.c | 41 +++---
gdb/arm-nbsd-nat.c | 132 ++++++++-----------
gdb/arm-tdep.c | 39 +++---
gdb/avr-tdep.c | 4 +-
gdb/bfin-linux-tdep.c | 2 +-
gdb/bfin-tdep.c | 6 +-
gdb/bsd-uthread.c | 4 +-
gdb/corelow.c | 4 +-
gdb/cris-tdep.c | 10 +-
gdb/ctf.c | 6 +-
gdb/frame.c | 2 +-
gdb/frv-tdep.c | 14 +-
gdb/go32-nat.c | 8 +-
gdb/h8300-tdep.c | 2 +-
gdb/hppa-linux-nat.c | 22 ++--
gdb/hppa-nbsd-nat.c | 68 +++++-----
gdb/hppa-nbsd-tdep.c | 2 +-
gdb/hppa-obsd-nat.c | 92 +++++++-------
gdb/hppa-obsd-tdep.c | 44 +++----
gdb/hppa-tdep.c | 38 +++---
gdb/i386-bsd-nat.c | 8 +-
gdb/i386-darwin-nat.c | 16 +--
gdb/i386-darwin-tdep.c | 7 +-
gdb/i386-fbsd-nat.c | 14 +-
gdb/i386-gnu-nat.c | 21 ++-
gdb/i386-linux-nat.c | 30 ++---
gdb/i386-linux-tdep.c | 2 +-
gdb/i386-nbsd-nat.c | 12 +-
gdb/i386-nto-tdep.c | 2 +-
gdb/i386-obsd-nat.c | 14 +-
gdb/i386-obsd-tdep.c | 8 +-
gdb/i386-tdep.c | 92 +++++---------
gdb/i386-v4-nat.c | 4 +-
gdb/i387-tdep.c | 176 ++++++++++++--------------
gdb/ia64-linux-nat.c | 60 +++++----
gdb/ia64-linux-tdep.c | 4 +-
gdb/ia64-tdep.c | 8 +-
gdb/iq2000-tdep.c | 8 +-
gdb/linux-nat-trad.c | 10 +-
gdb/m32c-tdep.c | 32 ++---
gdb/m32r-linux-nat.c | 16 +--
gdb/m32r-linux-tdep.c | 11 +-
gdb/m68hc11-tdep.c | 13 +-
gdb/m68k-bsd-nat.c | 23 ++--
gdb/m68k-bsd-tdep.c | 5 +-
gdb/m68k-linux-nat.c | 41 +++---
gdb/m68k-tdep.c | 29 ++---
gdb/mep-tdep.c | 16 +--
gdb/microblaze-tdep.c | 12 +-
gdb/mips-fbsd-nat.c | 4 +-
gdb/mips-linux-nat.c | 4 +-
gdb/mips-linux-tdep.c | 23 ++--
gdb/mips-nbsd-nat.c | 4 +-
gdb/mips-nbsd-tdep.c | 26 ++--
gdb/mips-tdep.c | 10 +-
gdb/mips64-obsd-nat.c | 12 +-
gdb/mips64-obsd-tdep.c | 2 +-
gdb/mn10300-linux-tdep.c | 220 ++++++++++++++++----------------
gdb/mn10300-tdep.c | 13 +-
gdb/moxie-tdep.c | 25 ++--
gdb/nds32-tdep.c | 30 ++---
gdb/nios2-linux-tdep.c | 8 +-
gdb/nios2-tdep.c | 12 +-
gdb/nto-procfs.c | 6 +-
gdb/or1k-tdep.c | 6 +-
gdb/ppc-fbsd-nat.c | 12 +-
gdb/ppc-linux-nat.c | 45 +++----
gdb/ppc-linux-tdep.c | 2 +-
gdb/ppc-nbsd-nat.c | 21 ++-
gdb/ppc-obsd-nat.c | 18 +--
gdb/ppc-ravenscar-thread.c | 4 +-
gdb/ppc-sysv-tdep.c | 295 +++++++++++++++++++------------------------
gdb/procfs.c | 4 +-
gdb/ravenscar-thread.c | 6 +-
gdb/record-btrace.c | 8 +-
gdb/record-full.c | 11 +-
gdb/regcache.c | 116 +----------------
gdb/regcache.h | 93 ++++----------
gdb/remote-sim.c | 4 +-
gdb/remote.c | 25 ++--
gdb/riscv-tdep.c | 18 +--
gdb/rl78-tdep.c | 22 ++--
gdb/rs6000-aix-tdep.c | 31 ++---
gdb/rs6000-lynx178-tdep.c | 31 ++---
gdb/rs6000-nat.c | 8 +-
gdb/rs6000-tdep.c | 29 ++---
gdb/s390-linux-nat.c | 12 +-
gdb/s390-linux-tdep.c | 10 +-
gdb/s390-tdep.c | 59 ++++-----
gdb/score-tdep.c | 13 +-
gdb/sentinel-frame.c | 2 +-
gdb/sh-nbsd-nat.c | 4 +-
gdb/sh-tdep.c | 26 ++--
gdb/sol-thread.c | 4 +-
gdb/sparc-linux-tdep.c | 2 +-
gdb/sparc-nat.c | 6 +-
gdb/sparc-nbsd-nat.c | 10 +-
gdb/sparc-obsd-tdep.c | 12 +-
gdb/sparc-ravenscar-thread.c | 4 +-
gdb/sparc-tdep.c | 105 +++++++--------
gdb/sparc64-fbsd-nat.c | 6 +-
gdb/sparc64-linux-tdep.c | 2 +-
gdb/sparc64-nbsd-nat.c | 6 +-
gdb/sparc64-obsd-nat.c | 6 +-
gdb/sparc64-obsd-tdep.c | 12 +-
gdb/sparc64-tdep.c | 175 +++++++++++++------------
gdb/spu-linux-nat.c | 14 +-
gdb/spu-multiarch.c | 14 +-
gdb/spu-tdep.c | 30 ++---
gdb/tic6x-tdep.c | 48 +++----
gdb/tilegx-linux-nat.c | 8 +-
gdb/tilegx-tdep.c | 6 +-
gdb/tracefile-tfile.c | 6 +-
gdb/tracefile.c | 2 +-
gdb/v850-tdep.c | 4 +-
gdb/vax-bsd-nat.c | 20 +--
gdb/vax-tdep.c | 16 +--
gdb/windows-nat.c | 15 +--
gdb/xstormy16-tdep.c | 6 +-
gdb/xtensa-linux-nat.c | 118 +++++++----------
gdb/xtensa-tdep.c | 57 ++++-----
145 files changed, 1816 insertions(+), 2136 deletions(-)
--
2.7.4