[Lldb-commits] [lldb] [lldb] Add --provider option to thread backtrace (PR #181071)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 31 21:27:11 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/scripted_frame_provider/thread_filter/TestFrameProviderThreadFilter.py lldb/test/API/functionalities/scripted_frame_provider/thread_filter/frame_provider.py lldb/test/API/functionalities/scripted_frame_provider/pass_through_prefix/TestFrameProviderPassThroughPrefix.py lldb/test/API/functionalities/scripted_frame_provider/pass_through_prefix/frame_provider.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
--- thread_filter/TestFrameProviderThreadFilter.py 2026-04-01 04:25:07.000000 +0000
+++ thread_filter/TestFrameProviderThreadFilter.py 2026-04-01 04:26:44.071511 +0000
@@ -40,13 +40,11 @@
for i in range(t.GetNumFrames()):
if "thread_work" in (t.GetFrameAtIndex(i).GetFunctionName() or ""):
worker_threads.append(t)
break
- self.assertEqual(
- len(worker_threads), 3, "Expected 3 worker threads"
- )
+ self.assertEqual(len(worker_threads), 3, "Expected 3 worker threads")
return target, process, worker_threads
def register_providers(self, target):
"""Import the script and register all three providers in order."""
script_path = os.path.join(self.getSourceDir(), "frame_provider.py")
``````````
</details>
https://github.com/llvm/llvm-project/pull/181071
More information about the lldb-commits
mailing list