Implement a new target.process.follow-fork-mode setting to control LLDB's behavior on fork. If set to 'parent', the forked child is detached and parent continues being traced. If set to 'child', the parent is detached and child becomes traced instead. Differential Revision: https://reviews.llvm.org/D100503
14 lines
414 B
Plaintext
14 lines
414 B
Plaintext
# REQUIRES: native && system-linux
|
|
# clone() tests fails on arm64 Linux, PR #49899
|
|
# UNSUPPORTED: system-linux && target-aarch64
|
|
# RUN: %clangxx_host %p/Inputs/fork.cpp -DTEST_CLONE -o %t
|
|
# RUN: %lldb -b -s %s %t | FileCheck %s
|
|
settings set target.process.follow-fork-mode child
|
|
b child_func
|
|
b parent_func
|
|
process launch
|
|
# CHECK: stop reason = breakpoint
|
|
# CHECK-NEXT: child_func
|
|
continue
|
|
# CHECK: child exited: 0
|