summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/tools
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2018-04-27 19:59:42 +0000
committerFrederic Riss <friss@apple.com>2018-04-27 19:59:42 +0000
commit60b94c296eaa5c69826755bb82d7b274b9c3faeb (patch)
tree60b53ea57b3856861ed9fb7f820bd359ac4ad679 /lldb/packages/Python/lldbsuite/test/tools
parent9e3e14b5f90580f1723fd6a3b1546534e21dd6bf (diff)
downloadbcm5719-llvm-60b94c296eaa5c69826755bb82d7b274b9c3faeb.tar.gz
bcm5719-llvm-60b94c296eaa5c69826755bb82d7b274b9c3faeb.zip
[debugserver] Fix the G packet handling.
Of course r331004 needed a counterpart on the write side. llvm-svn: 331073
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/tools')
-rw-r--r--lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteGPacket.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteGPacket.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteGPacket.py
index f4f50a723b0..76910758fa9 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteGPacket.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteGPacket.py
@@ -24,6 +24,15 @@ class TestGdbRemoteGPacket(gdbremote_testcase.GdbRemoteTestCaseBase):
register_bank = context.get("register_bank")
self.assertTrue(register_bank[0] != 'E')
+ self.test_sequence.add_log_lines(
+ ["read packet: $G" + register_bank + "#00",
+ {"direction": "send", "regex": r"^\$(.+)#[0-9a-fA-F]{2}$",
+ "capture": {1: "G_reply"}}],
+ True)
+ context = self.expect_gdbremote_sequence()
+ self.assertTrue(context.get("G_reply")[0] != 'E')
+
+
@skipIfOutOfTreeDebugserver
@debugserver_test
def test_g_packet_debugserver(self):
OpenPOWER on IntegriCloud