aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Subprocess/fork-follow-child-wp.test
blob: 77b442c078af9299c6045af41bb62eb8f6605cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# REQUIRES: native && dbregs-set
# UNSUPPORTED: system-darwin
# UNSUPPORTED: system-windows
# RUN: %clangxx_host -g %p/Inputs/fork.cpp -DTEST_FORK=fork -o %t
# RUN: %lldb -b -s %s %t | FileCheck %s
settings set target.process.follow-fork-mode child
settings set target.process.stop-on-exec false
process launch -s
watchpoint set variable -w write g_val
# CHECK: Watchpoint created:
continue
# CHECK: stop reason = watchpoint
continue
# CHECK: stop reason = watchpoint
continue
# CHECK: function run in exec'd child