Temporarily remove breakpoints for the duration of vfork, in order to prevent them from triggering in the child process. Restore them once the server reports that vfork has finished and it is ready to resume execution. Differential Revision: https://reviews.llvm.org/D100267
14 lines
360 B
Plaintext
14 lines
360 B
Plaintext
# REQUIRES: native
|
|
# UNSUPPORTED: system-darwin
|
|
# 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
|
|
b child_func
|
|
process launch
|
|
# CHECK-NOT: function run in parent
|
|
# CHECK: stop reason = breakpoint
|
|
continue
|
|
# CHECK: function run in parent
|
|
# CHECK: child exited: 0
|