diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2023-10-03 10:34:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 10:34:00 -0700 |
commit | 2da99a11196246ab5f9787117f01b2251480607a (patch) | |
tree | f9d3c2249efb847101d8c6f3e42dfa00cb614f12 /lldb/packages/Python/lldbsuite/test/gdbclientutils.py | |
parent | dd76375c80098be4d08b7e02290e39a8c1d00ab1 (diff) | |
download | llvm-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.py | 6 |
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 "" |