[Lldb-commits] [lldb] [lldb-dap] Add an option to provide a format for threads (PR #72196)

via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 13 18:48:22 PST 2023


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 e9453f3c3c7e682e39952c9e18e6b1f8152b0ffa..5b5ec92b655e390e652fafbe3f56628ff822ee51 lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py lldb/test/API/tools/lldb-dap/threads/TestDAP_threads.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- test/API/tools/lldb-dap/threads/TestDAP_threads.py	2023-11-14 02:43:30.000000 +0000
+++ test/API/tools/lldb-dap/threads/TestDAP_threads.py	2023-11-14 02:48:15.446523 +0000
@@ -49,11 +49,13 @@
     def test_thread_format(self):
         """
         Tests the support for custom thread formats.
         """
         program = self.getBuildArtifact("a.out")
-        self.build_and_launch(program, customThreadFormat="This is thread index #${thread.index}")
+        self.build_and_launch(
+            program, customThreadFormat="This is thread index #${thread.index}"
+        )
         source = "main.c"
         breakpoint_line = line_number(source, "// break here")
         lines = [breakpoint_line]
         # Set breakpoint in the thread function
         breakpoint_ids = self.set_source_breakpoints(source, lines)

``````````

</details>


https://github.com/llvm/llvm-project/pull/72196


More information about the lldb-commits mailing list