* linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
authorDaniel Jacobowitz <drow@false.org>
Sun, 17 Aug 2003 20:17:02 +0000 (20:17 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 17 Aug 2003 20:17:02 +0000 (20:17 +0000)
commit9016a515a30010b1a1a18e5749d1cef907fa44e5
tree0ba09b1f5803ef929e227dd1d37e77ed9e59a75e
parentc538c11c4887a6619b7f2a3d345382efbc1cda7d
* linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
(PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
(linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
(linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
(linux_supports_tracevforkdone): New function.
(linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
TRACEVFORKDONE.
(child_follow_fork): Handle vfork.
(linux_handle_extended_wait): Likewise.  Also handle exec.
(child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
* NEWS: Mention fork tracing.
gdb/ChangeLog
gdb/linux-nat.c