public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Fix failure to detach if process exits while detaching on Linux
@ 2016-06-16 23:33 Pedro Alves
  2016-06-16 23:32 ` [PATCH v4 1/3] Factor out "Detaching from program" message printing Pedro Alves
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Pedro Alves @ 2016-06-16 23:33 UTC (permalink / raw)
  To: gdb-patches

This series picks up where
 https://sourceware.org/ml/gdb-patches/2016-06/msg00068.html
left off.

New in v4:

 - Handles failure to remove watchpoints / (prepare to resume).

 - Reworked to reap zombie lwps on failure to detach.  Without this,
   gdb actually remains attached to the process.  This can result in
   the process's parent hanging, if it is waiting for the child to
   exit.
   
 - Tests much extended.

 - Commit log tweaked / extended.

Also pushed to users/palves/detach-gone-thread-v4, for convenience.

( Antoine, I rewrote the test substantially, and renamed it to
process-dies-while-detaching.exp to mirror
process-dies-while-handling-bp.exp, which is somewhat similar in
spirit.  You can easily see the differences from what we were working on
earlier with:
git diff -M origin/users/palves/detach-gone-thread-wip..origin/users/palves/detach-gone-thread-v4
)

 gdb/breakpoint.c                                   |  25 +-
 gdb/darwin-nat.c                                   |  10 +-
 gdb/gdbserver/linux-low.c                          | 116 ++++++--
 gdb/inf-ptrace.c                                   |  20 +-
 gdb/inf-ptrace.h                                   |   4 +
 gdb/infcmd.c                                       |   7 +
 gdb/linux-nat.c                                    | 152 ++++++----
 gdb/nto-procfs.c                                   |  11 +-
 gdb/remote.c                                       |  10 +-
 gdb/target.c                                       |  22 ++
 gdb/target.h                                       |   5 +
 gdb/testsuite/gdb.multi/watchpoint-multi-exit.c    |  66 +++++
 gdb/testsuite/gdb.multi/watchpoint-multi-exit.exp  |  87 ++++++
 .../gdb.threads/process-dies-while-detaching.c     | 116 ++++++++
 .../gdb.threads/process-dies-while-detaching.exp   | 327 +++++++++++++++++++++
 15 files changed, 864 insertions(+), 114 deletions(-)
 create mode 100644 gdb/testsuite/gdb.multi/watchpoint-multi-exit.c
 create mode 100644 gdb/testsuite/gdb.multi/watchpoint-multi-exit.exp
 create mode 100644 gdb/testsuite/gdb.threads/process-dies-while-detaching.c
 create mode 100644 gdb/testsuite/gdb.threads/process-dies-while-detaching.exp

-- 
2.5.5

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

end of thread, other threads:[~2016-07-01 10:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-16 23:33 [PATCH v4 0/3] Fix failure to detach if process exits while detaching on Linux Pedro Alves
2016-06-16 23:32 ` [PATCH v4 1/3] Factor out "Detaching from program" message printing Pedro Alves
2016-06-17 11:31   ` Yao Qi
2016-06-16 23:33 ` [PATCH v4 3/3] Fix failure to detach if process exits while detaching on Linux Pedro Alves
2016-06-17 13:03   ` Antoine Tremblay
2016-06-24 19:30     ` Pedro Alves
2016-06-17 15:07   ` Yao Qi
2016-06-24 19:28     ` Pedro Alves
2016-06-16 23:33 ` [PATCH v4 2/3] Forget watchpoint locations when inferior exits or is killed/detached Pedro Alves
2016-06-17 11:56   ` Yao Qi
2016-06-24 19:10     ` Pedro Alves
2016-07-01 10:49       ` Pedro Alves

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