HomeFreeBSD

Add PTRACE_VFORK to trace vfork events.

Description

Add PTRACE_VFORK to trace vfork events.

First, PL_FLAG_FORKED events now also set a PL_FLAG_VFORKED flag when
the new child was created via vfork() rather than fork(). Second, a
new PL_FLAG_VFORK_DONE event can now be enabled via the PTRACE_VFORK
event mask. This new stop is reported after the vfork parent resumes
due to the child calling exit or exec. Debuggers can use this stop to
reinsert breakpoints in the vfork parent process before it resumes.

Reviewed by: kib
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D7045

Details

Provenance
jhbAuthored on
Reviewer
kib
Differential Revision
D7045: Add PTRACE_VFORK to trace vfork events.
Parents
rS303000: Update if_hwassist when interface options are changed.
Branches
Unknown
Tags
Unknown