[PATCH v3 0/3] Follow fork improvements
Simon Marchi
simon.marchi@polymtl.ca
Thu Jun 10 14:33:02 GMT 2021
This is just a slightly non-trivial rebase of:
https://sourceware.org/pipermail/gdb-patches/2021-June/179454.html
There were conflicts due to:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=122373f7f25946cfc51de9e19ba1d173195f9910
I think the combined result is nice, since we now set
inferior::in_initial_library_scan in a single place, in
post_create_inferior.
Simon Marchi (3):
gdb: call post_create_inferior at end of follow_fork_inferior
gdb: pass child_ptid and fork kind to target_ops::follow_fork
gdb: follow-fork: push target and add thread in target_follow_fork
gdb/NEWS | 3 +
gdb/doc/gdb.texinfo | 4 +
gdb/exec.c | 6 +-
gdb/exec.h | 9 +-
gdb/fbsd-nat.c | 12 +-
gdb/fbsd-nat.h | 2 +-
gdb/infrun.c | 199 ++++++++------------
gdb/jit.c | 28 +++
gdb/linux-nat.c | 45 ++---
gdb/linux-nat.h | 5 +-
gdb/linux-thread-db.c | 2 +-
gdb/obsd-nat.c | 15 +-
gdb/obsd-nat.h | 2 +-
gdb/process-stratum-target.c | 15 ++
gdb/process-stratum-target.h | 9 +
gdb/remote.c | 22 +--
gdb/target-debug.h | 2 +
gdb/target-delegates.c | 26 ++-
gdb/target.c | 22 ++-
gdb/target.h | 16 +-
gdb/testsuite/gdb.base/jit-elf-fork-main.c | 129 +++++++++++++
gdb/testsuite/gdb.base/jit-elf-fork-solib.c | 25 +++
gdb/testsuite/gdb.base/jit-elf-fork.exp | 186 ++++++++++++++++++
23 files changed, 576 insertions(+), 208 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/jit-elf-fork-main.c
create mode 100644 gdb/testsuite/gdb.base/jit-elf-fork-solib.c
create mode 100644 gdb/testsuite/gdb.base/jit-elf-fork.exp
--
2.32.0
More information about the Gdb-patches
mailing list