public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v3 0/7] Fix handling of pending fork events
@ 2021-12-01 14:44 Simon Marchi
  2021-12-01 14:44 ` [PATCH v3 1/7] gdbserver: hide fork child threads from GDB Simon Marchi
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Simon Marchi @ 2021-12-01 14:44 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

From: Simon Marchi <simon.marchi@efficios.com>

This is v3 of:

    https://sourceware.org/pipermail/gdb-patches/2021-November/183797.html

The series grew a little bit:

  - gdbserver: hide fork child threads from GDB

    Don't move the fork_relative field to thread_info, add a new target
    method instead.

  - gdb/linux-nat: factor ptrace-detach code to new detach_one_pid function

    No changes.

  - gdbserver: suppress "Detaching from process" message

    New, makes testing in last patch easier.  Potentially controversial.

  - gdb/remote.c: move some things up

    New, trivial changes.

  - gdb/remote.c: refactor pending fork status functions

    New, small refactor to clean things up.

  - gdb: move clearing of tp->pending_follow to follow_fork_inferior

    New, fix necessary for last patch.

  - gdb, gdbserver: detach fork child when detaching from fork parent

    Handle detaching after a "catch fork" stop.  Handle fork statuses in
    pending stop replies in the remote target, add new test for this.


Simon Marchi (7):
  gdbserver: hide fork child threads from GDB
  gdb/linux-nat: factor ptrace-detach code to new detach_one_pid
    function
  gdbserver: suppress "Detaching from process" message
  gdb/remote.c: move some things up
  gdb/remote.c: refactor pending fork status functions
  gdb: move clearing of tp->pending_follow to follow_fork_inferior
  gdb, gdbserver: detach fork child when detaching from fork parent

 gdb/infrun.c                                  |  28 ++-
 gdb/linux-nat.c                               | 129 +++++++---
 gdb/remote.c                                  | 232 ++++++++++--------
 .../pending-fork-event-detach-ns.c            |  98 ++++++++
 .../pending-fork-event-detach-ns.exp          |  67 +++++
 .../pending-fork-event-detach-touch-file.c    |  26 ++
 .../gdb.threads/pending-fork-event-detach.c   |  86 +++++++
 .../gdb.threads/pending-fork-event-detach.exp | 127 ++++++++++
 gdb/testsuite/lib/gdb.exp                     |  21 ++
 gdbserver/linux-low.cc                        |  22 ++
 gdbserver/linux-low.h                         |  56 +++++
 gdbserver/server.cc                           |  36 ++-
 gdbserver/target.cc                           |  12 +
 gdbserver/target.h                            |  20 ++
 14 files changed, 806 insertions(+), 154 deletions(-)
 create mode 100644 gdb/testsuite/gdb.threads/pending-fork-event-detach-ns.c
 create mode 100644 gdb/testsuite/gdb.threads/pending-fork-event-detach-ns.exp
 create mode 100644 gdb/testsuite/gdb.threads/pending-fork-event-detach-touch-file.c
 create mode 100644 gdb/testsuite/gdb.threads/pending-fork-event-detach.c
 create mode 100644 gdb/testsuite/gdb.threads/pending-fork-event-detach.exp

-- 
2.33.1


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

end of thread, other threads:[~2021-12-08 19:54 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01 14:44 [PATCH v3 0/7] Fix handling of pending fork events Simon Marchi
2021-12-01 14:44 ` [PATCH v3 1/7] gdbserver: hide fork child threads from GDB Simon Marchi
2021-12-03 23:30   ` Pedro Alves
2021-12-01 14:44 ` [PATCH v3 2/7] gdb/linux-nat: factor ptrace-detach code to new detach_one_pid function Simon Marchi
2021-12-03 23:30   ` Pedro Alves
2021-12-01 14:44 ` [PATCH v3 3/7] gdbserver: suppress "Detaching from process" message Simon Marchi
2021-12-03 23:42   ` Pedro Alves
2021-12-04  2:57     ` Simon Marchi
2021-12-01 14:44 ` [PATCH v3 4/7] gdb/remote.c: move some things up Simon Marchi
2021-12-03 23:42   ` Pedro Alves
2021-12-01 14:44 ` [PATCH v3 5/7] gdb/remote.c: refactor pending fork status functions Simon Marchi
2021-12-03 23:43   ` Pedro Alves
2021-12-04  3:03     ` Simon Marchi
2021-12-01 14:44 ` [PATCH v3 6/7] gdb: move clearing of tp->pending_follow to follow_fork_inferior Simon Marchi
2021-12-03 23:43   ` Pedro Alves
2021-12-01 14:45 ` [PATCH v3 7/7] gdb, gdbserver: detach fork child when detaching from fork parent Simon Marchi
2021-12-03 23:44   ` Pedro Alves
2021-12-04  3:36     ` Simon Marchi
2021-12-07 23:25       ` Pedro Alves
2021-12-08 19:54         ` Simon Marchi

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).