[Lldb-commits] [lldb] [lldb][test] Change vCont handling in TestEmptyThreadList.py (PR #227703)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 30 06:16:46 PDT 2026
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/227703
The `def vCont` handler is triggered only for `vCont;c`, not other `vCont...`. This test only sometimes sends this, so sometimes it produced a UnexpectedPacketException.
(though it "passes" still, somehow)
To fix this, declare a vCont handler for the colon c version, and let `def other` handle the rest.
>From f742bb5dadaab252a634bafab4ad8082fdca61cd Mon Sep 17 00:00:00 2001
From: David Spickett <david.spickett at arm.com>
Date: Wed, 30 Sep 2026 13:12:52 +0000
Subject: [PATCH] [lldb][test] Change vCont handling in TestEmptyThreadList.py
The `def vCont` handler is triggered only for `vCont;c`, not
other `vCont...`. This test only sometimes sends this,
so sometimes it produced a UnexpectedPacketException.
(though it "passes" still, somehow)
To fix this, declare a vCont handler for the colon c version,
and let `def other` handle the rest.
---
.../functionalities/gdb_remote_client/TestEmptyThreadList.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lldb/test/API/functionalities/gdb_remote_client/TestEmptyThreadList.py b/lldb/test/API/functionalities/gdb_remote_client/TestEmptyThreadList.py
index a9ae05432c92ac..064e8d551ee82e 100644
--- a/lldb/test/API/functionalities/gdb_remote_client/TestEmptyThreadList.py
+++ b/lldb/test/API/functionalities/gdb_remote_client/TestEmptyThreadList.py
@@ -38,6 +38,9 @@ def haltReason(self):
def cont(self):
return "S13"
+ def vCont(self, packet):
+ return "S13"
+
def other(self, packet):
if packet == "vCont?":
return "vCont;c;C;s;S"
More information about the lldb-commits
mailing list