aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/gdbclientutils.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-10-03 10:34:00 -0700
committerGitHub <noreply@github.com>2023-10-03 10:34:00 -0700
commit2da99a11196246ab5f9787117f01b2251480607a (patch)
treef9d3c2249efb847101d8c6f3e42dfa00cb614f12 /lldb/packages/Python/lldbsuite/test/gdbclientutils.py
parentdd76375c80098be4d08b7e02290e39a8c1d00ab1 (diff)
downloadllvm-2da99a11196246ab5f9787117f01b2251480607a.zip
llvm-2da99a11196246ab5f9787117f01b2251480607a.tar.gz
llvm-2da99a11196246ab5f9787117f01b2251480607a.tar.bz2
[lldb] Expose Platform::Attach through the SB API (#68050)
Expose Platform::Attach through the SB API. rdar://116188959
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/gdbclientutils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/gdbclientutils.py b/lldb/packages/Python/lldbsuite/test/gdbclientutils.py
index a0104d3..1784487 100644
--- a/lldb/packages/Python/lldbsuite/test/gdbclientutils.py
+++ b/lldb/packages/Python/lldbsuite/test/gdbclientutils.py
@@ -196,6 +196,9 @@ class MockGDBServerResponder:
return self.vFile(packet)
if packet.startswith("vRun;"):
return self.vRun(packet)
+ if packet.startswith("qLaunchGDBServer;"):
+ _, host = packet.partition(";")[2].split(":")
+ return self.qLaunchGDBServer(host)
if packet.startswith("qLaunchSuccess"):
return self.qLaunchSuccess()
if packet.startswith("QEnvironment:"):
@@ -329,6 +332,9 @@ class MockGDBServerResponder:
def vRun(self, packet):
return ""
+ def qLaunchGDBServer(self, host):
+ raise self.UnexpectedPacketException()
+
def qLaunchSuccess(self):
return ""