llvm-project/lldb/test/Shell/Subprocess/vfork-follow-parent.test
Michał Górny 63d7564105 Reland "[lldb] [Process] Watch for fork/vfork notifications" for FreeBSD
The original commit was reverted because of the problems it introduced
on Linux.  However, FreeBSD should not be affected, so restore that part
and we will address Linux separately.

While at it, remove the dbreg hack as the underlying issue has been
fixed in the FreeBSD kernel and the problem is unlikely to happen
in real life use anyway.

Differential Revision: https://reviews.llvm.org/D98822
2021-04-13 13:19:42 +02:00

12 lines
318 B
Plaintext

# REQUIRES: native
# UNSUPPORTED: system-windows
# RUN: %clangxx_host %p/Inputs/fork.cpp -DTEST_FORK=vfork -o %t
# RUN: %lldb -b -s %s %t | FileCheck %s
b parent_func
process launch
# CHECK-NOT: function run in parent
# CHECK: stop reason = breakpoint
continue
# CHECK: function run in parent
# CHECK: child exited: 0