public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Refactor target_ops::post_startup_inferior
@ 2021-12-03 10:28 Andrew Burgess
  2021-12-03 10:28 ` [PATCH 1/3] gdb: have mips_nbsd_nat_target inherit from nbsd_nat_target Andrew Burgess
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Andrew Burgess @ 2021-12-03 10:28 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

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


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

end of thread, other threads:[~2021-12-13 11:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-03 10:28 [PATCH 0/3] Refactor target_ops::post_startup_inferior Andrew Burgess
2021-12-03 10:28 ` [PATCH 1/3] gdb: have mips_nbsd_nat_target inherit from nbsd_nat_target Andrew Burgess
2021-12-03 16:23   ` John Baldwin
2021-12-03 10:28 ` [PATCH 2/3] gdb: rename gdb_startup_inferior to inf_child_target::startup_inferior Andrew Burgess
2021-12-07 18:58   ` Tom Tromey
2021-12-09 18:45   ` Andrew Burgess
2021-12-03 10:28 ` [PATCH 3/3] gdb: make post_startup_inferior a virtual method on inf_ptrace_target Andrew Burgess
2021-12-03 16:39   ` John Baldwin
2021-12-07 19:10     ` Tom Tromey
2021-12-08 11:46     ` Andrew Burgess
2021-12-08 18:11       ` John Baldwin
2021-12-13 11:21 ` [PATCH 0/3] Refactor target_ops::post_startup_inferior Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).