[Lldb-commits] [lldb] Support single stopped event in lldb-dap (PR #98568)

via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 11 17:34:55 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 b81fcd01bde51eb8976b81a2c0c19fc0645cd2ff...13af0ff31688ca0a23f1fec65ca2d5797b65e31f lldb/test/API/tools/lldb-dap/stop-events/TestDAP_stopEvents.py lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py
``````````

</details>

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

``````````diff
--- packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py	2024-07-12 00:24:41.000000 +0000
+++ packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py	2024-07-12 00:34:31.518976 +0000
@@ -429,12 +429,14 @@
 
     def get_thread_events(self, reason=None):
         if reason == None:
             return self.thread_events_body
         else:
-            return [body for body in self.thread_events_body if body["reason"] == reason]
-        
+            return [
+                body for body in self.thread_events_body if body["reason"] == reason
+            ]
+
     def get_stopped_events(self):
         return self.stopped_events
 
     def get_thread_id(self, threadIndex=0):
         """Utility function to get the first thread ID in the thread list.
--- test/API/tools/lldb-dap/stop-events/TestDAP_stopEvents.py	2024-07-12 00:24:41.000000 +0000
+++ test/API/tools/lldb-dap/stop-events/TestDAP_stopEvents.py	2024-07-12 00:34:31.738292 +0000
@@ -7,11 +7,10 @@
 import lldbdap_testcase
 from lldbsuite.test import lldbutil
 
 
 class TestDAP_stopEvents(lldbdap_testcase.DAPTestCaseBase):
-
     @skipIfWindows
     @skipIfRemote
     def test_single_stop_event(self):
         """
         Ensure single stopped event is sent during stop when singleStoppedEvent

``````````

</details>


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


More information about the lldb-commits mailing list