This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix a 'set detach-on-fork off', and manual "detach" problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]