This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/3] Introduce process_stratum_target
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 27 Nov 2018 20:22:44 +0000
- Subject: [PATCH 0/3] Introduce process_stratum_target
Some more easily-splittable bits from my multi-target branch.
In the branch, I did a lot of back and forth around changing the
interface of the target_ops::has_foo methods, and it annoyed me that I
had to adjust the interface in several places. At some point I came
up with these patches to try to centralize things a little more.
Pedro Alves (3):
Move test_target_ops to a separate file
Introduce process_stratum_target
Convert default_child_has_foo functions to process_stratum_target
methods
gdb/Makefile.in | 2 +
gdb/bsd-kvm.c | 6 +--
gdb/corelow.c | 8 ++--
gdb/gdbarch-selftests.c | 1 +
gdb/inf-child.c | 35 ---------------
gdb/inf-child.h | 17 ++-----
gdb/process-stratum-target.c | 100 +++++++++++++++++++++++++++++++++++++++++
gdb/process-stratum-target.h | 60 +++++++++++++++++++++++++
gdb/ravenscar-thread.c | 7 ---
gdb/regcache.c | 1 +
gdb/remote-sim.c | 15 ++-----
gdb/remote.c | 14 ++----
gdb/target-delegates.c | 4 +-
gdb/target.c | 105 -------------------------------------------
gdb/target.h | 67 ++-------------------------
gdb/test-target.c | 39 ++++++++++++++++
gdb/test-target.h | 65 +++++++++++++++++++++++++++
gdb/tracefile.c | 5 ---
gdb/tracefile.h | 6 ++-
19 files changed, 295 insertions(+), 262 deletions(-)
create mode 100644 gdb/process-stratum-target.c
create mode 100644 gdb/process-stratum-target.h
create mode 100644 gdb/test-target.c
create mode 100644 gdb/test-target.h
--
2.14.4