[Lldb-commits] [lldb] [lldb-dap] Creating an API for sending custom dap events from lldb-dap. (PR #112384)

via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 15 17:56:23 PDT 2024


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 224f62de9e34d537b1fd282b47b773b04bea34f1...ea5bf236b32bb852d4461d37b732f6e7f0f3007b lldb/test/API/tools/lldb-dap/send-event/TestDAP_sendEvent.py lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
``````````

</details>

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

``````````diff
--- test/API/tools/lldb-dap/send-event/TestDAP_sendEvent.py	2024-10-16 00:52:01.000000 +0000
+++ test/API/tools/lldb-dap/send-event/TestDAP_sendEvent.py	2024-10-16 00:55:53.392270 +0000
@@ -58,7 +58,12 @@
         breakpoint_line = line_number(source, "// breakpoint")
 
         self.set_source_breakpoints(source, [breakpoint_line])
         self.continue_to_next_stop()
 
-        resp = self.dap_server.request_evaluate("`lldb-dap send-event stopped", context="repl")
-        self.assertRegex(resp['body']['result'], r"Invalid use of lldb-dap send-event, event \"stopped\" should be handled by lldb-dap internally.")
+        resp = self.dap_server.request_evaluate(
+            "`lldb-dap send-event stopped", context="repl"
+        )
+        self.assertRegex(
+            resp["body"]["result"],
+            r"Invalid use of lldb-dap send-event, event \"stopped\" should be handled by lldb-dap internally.",
+        )

``````````

</details>


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


More information about the lldb-commits mailing list