[Lldb-commits] [lldb] [lldb] Add stop-on-fork and stop-on-vfork settings (PR #188710)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 29 13:02:47 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD lldb/test/API/functionalities/fork/stop/TestStopOnForkAndVFork.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestStopOnForkAndVFork.py 2026-04-29 20:00:43.000000 +0000
+++ TestStopOnForkAndVFork.py 2026-04-29 20:02:01.635278 +0000
@@ -24,11 +24,13 @@
self.runCmd(f"settings set target.process.stop-on-{fork} true")
self.runCmd(f"settings set target.process.follow-fork-mode {mode}")
process.Continue()
self.assertState(
- process.GetState(), lldb.eStateStopped, f"Process should be stopped at {fork}"
+ process.GetState(),
+ lldb.eStateStopped,
+ f"Process should be stopped at {fork}",
)
threads = lldbutil.get_stopped_threads(
process, lldb.eStopReasonVFork if fork == "vfork" else lldb.eStopReasonFork
)
self.assertEqual(len(threads), 1, f"We got a thread stopped for {fork}.")
``````````
</details>
https://github.com/llvm/llvm-project/pull/188710
More information about the lldb-commits
mailing list