This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: fix a 'set detach-on-fork off', and manual "detach" problem
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 28 Dec 2008 16:27:52 +0000
- Subject: Re: fix a 'set detach-on-fork off', and manual "detach" problem
- References: <200812130025.30263.pedro@codesourcery.com>
Hi!
On Saturday 13 December 2008 00:25:29, Pedro Alves wrote:
> 2008-12-12 Pedro Alves <pedro@codesourcery.com>
>
> * linux-fork.c (linux_fork_detach): New.
> * linux-fork.h (linux_fork_detach): Declare.
> * linux-nat.c (linux_child_follow_fork): When following the fork
> child, add the child inferior before possibly detaching from the
> parent. Don't reinstall ourselves.
> (linux_nat_detach): Call linux_fork_detach if there are other
> forks to debug.
> * linux-thread-db.c (thread_db_detach): Don't call
> target_mourn_inferior. Instead inline the necessary bits.
> * inf-ptrace.c (inf_ptrace_detach): Don't unpush the target if
> there are other inferiors to debug.
I've checked this in.
--
Pedro Alves