[Lldb-commits] [lldb] [debugserver] Implement MultiMemRead packet (PR #162670)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 10 09:08:24 PDT 2025
================
@@ -0,0 +1,72 @@
+"""
+Tests the exit code/description coming from the debugserver.
+"""
+
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
+
+
+ at skipUnlessDarwin
+ at skipIfOutOfTreeDebugserver
+class TestCase(TestBase):
+ def send_process_packet(self, packet_str):
+ self.runCmd(f"proc plugin packet send {packet_str}", check=False)
+ # The output is of the form:
+ # packet: <packet_str>
+ # response: <response>
+ reply = self.res.GetOutput().split("\n")
+ reply[0] = reply[0].strip()
+ reply[1] = reply[1].strip()
----------------
DavidSpickett wrote:
Could name these `packet` and `response`. Signals what you expect to find in there.
https://github.com/llvm/llvm-project/pull/162670
More information about the lldb-commits
mailing list