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
11 lines
365 B
Plaintext
11 lines
365 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 parent_func
|
|
process launch
|
|
# CHECK: function run in parent
|
|
# CHECK: child exited: 0
|