[Lldb-commits] [lldb] Add SBDebugger::AddCreateCallback API (PR #111206)

via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 4 13:39:50 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 828783177f71d95522763fba92ef1e42dc6101c7...4f119961f3ae2d7bc40a2c00e18ee5774254c773 lldb/test/API/python_api/debugger/TestDebuggerAPI.py
``````````

</details>

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

``````````diff
--- TestDebuggerAPI.py	2024-10-04 16:33:53.000000 +0000
+++ TestDebuggerAPI.py	2024-10-04 20:39:23.097812 +0000
@@ -290,21 +290,24 @@
     def test_AddRemoveDebuggerCreateCallback(self):
         """
         Test SBDebugger::AddCreateCallback and SBDebugger::RemoveCreateCallback
         """
         created_debuggers = []
+
         def debugger_create_callback(debugger):
             created_debuggers.append(debugger)
-        
-        create_callback_token = lldb.SBDebugger.AddCreateCallback(debugger_create_callback)
+
+        create_callback_token = lldb.SBDebugger.AddCreateCallback(
+            debugger_create_callback
+        )
         debugger1 = lldb.SBDebugger.Create()
-        debugger2 = lldb.SBDebugger.Create()     
-        
+        debugger2 = lldb.SBDebugger.Create()
+
         lldb.SBDebugger.RemoveCreateCallback(create_callback_token)
         debugger3 = lldb.SBDebugger.Create()
-        
+
         self.assertNotEqual(debugger1.GetID(), debugger2.GetID())
         self.assertNotEqual(debugger1.GetID(), debugger3.GetID())
-        
+
         self.assertEqual(len(created_debuggers), 2)
         self.assertEqual(debugger1.GetID(), created_debuggers[0].GetID())
         self.assertEqual(debugger2.GetID(), created_debuggers[1].GetID())

``````````

</details>


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


More information about the lldb-commits mailing list