[PATCH 0/3] Refactor target_ops::post_startup_inferior
Andrew Burgess
aburgess@redhat.com
Fri Dec 3 10:28:42 GMT 2021
While working on another patch series I needed to understand how
post_startup_inferior is used.
I found the current setup confusing, so here's a small series which I
think makes things clearer.
All feedback welcome,
Thanks,
Andrew
---
Andrew Burgess (3):
gdb: have mips_nbsd_nat_target inherit from nbsd_nat_target
gdb: rename gdb_startup_inferior to inf_child_target::startup_inferior
gdb: make post_startup_inferior a virtual method on inf_ptrace_target
gdb/aarch64-linux-nat.c | 2 +-
gdb/darwin-nat.c | 2 +-
gdb/fbsd-nat.c | 2 +-
gdb/fbsd-nat.h | 5 ++++-
gdb/fork-child.c | 17 +----------------
gdb/gnu-nat.c | 2 +-
gdb/inf-child.c | 24 +++++++++++++++++-------
gdb/inf-child.h | 12 ++++++++++--
gdb/inf-ptrace.c | 4 ++--
gdb/inf-ptrace.h | 12 ++++++++++++
gdb/inferior.h | 7 -------
gdb/linux-nat.c | 2 ++
gdb/linux-nat.h | 6 ++++--
gdb/mips-netbsd-nat.c | 3 ++-
gdb/netbsd-nat.c | 2 +-
gdb/netbsd-nat.h | 4 +++-
gdb/obsd-nat.c | 2 ++
gdb/obsd-nat.h | 5 +++--
gdb/procfs.c | 2 +-
gdb/rs6000-aix-nat.c | 5 +++++
gdb/target-delegates.c | 23 -----------------------
gdb/target.c | 8 --------
gdb/target.h | 14 --------------
gdb/x86-linux-nat.c | 2 ++
gdb/x86-linux-nat.h | 7 ++++---
25 files changed, 79 insertions(+), 95 deletions(-)
--
2.25.4
More information about the Gdb-patches
mailing list