[lldb] Detach the child process when stepping over a fork
authorPavel Labath <pavel@labath.sk>
Thu, 12 Jan 2023 13:04:57 +0000 (14:04 +0100)
committerPavel Labath <pavel@labath.sk>
Wed, 5 Apr 2023 11:25:43 +0000 (13:25 +0200)
commitaf9e1fa178433653eb3d36c42cad016449873cfc
tree690a28e4ed3986292deba15cfd6e16df8565aa8f
parent933d3ee60007f5798319cad05b981cb265578ba0
[lldb] Detach the child process when stepping over a fork

Step over thread plans were claiming to explain the fork stop reasons,
which prevented the default fork logic (detaching from the child
process) from kicking in. This patch changes that.

Differential Revision: https://reviews.llvm.org/D141605
lldb/source/Target/ThreadPlan.cpp
lldb/test/API/functionalities/fork/resumes-child/Makefile [new file with mode: 0644]
lldb/test/API/functionalities/fork/resumes-child/TestForkResumesChild.py [new file with mode: 0644]
lldb/test/API/functionalities/fork/resumes-child/main.cpp [new file with mode: 0644]