* inf-ttrace.c (inf_ttrace_vfork_ppid): New variable.
authorMark Kettenis <kettenis@gnu.org>
Wed, 20 Jul 2005 13:25:28 +0000 (13:25 +0000)
committerMark Kettenis <kettenis@gnu.org>
Wed, 20 Jul 2005 13:25:28 +0000 (13:25 +0000)
commitb2a4db28c283088e34703a399fb28c849eb20cf2
tree67c20a2af334727c63ec6d9c3e316eb09f4bd7a3
parent157e7bd196cc83495a38f37b1528d2505d554b2e
* inf-ttrace.c (inf_ttrace_vfork_ppid): New variable.
(inf_ttrace_follow_fork): New function.
(inf_ttrace_him, inf_ttrace_attach): Ask for TTEVT_FORK and
TTEVT_VFORK events.  Replace TTEO_NOSTRCHLD option with
TTEO_PROC_INHERIT.
(inf_ttrace_create_inferior, inf_ttrace_attach): Add checks for
inf_ttrace_vfork_ppid.
(inf_ttrace_kill_inferior, inf_ttrace_detach): Detach from waiting
parent if appropriate.
(inf_ttrace_wait): Handle TTEVT_FORK and TTEVT_VFORK.
(inf_ttrace_target): Set to_follow_fork.
gdb/ChangeLog
gdb/inf-ttrace.c