aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2023-09-29 09:41:37 -0700
committerGitHub <noreply@github.com>2023-09-29 09:41:37 -0700
commit39fc8b09553a563865c274d891643c7246db6783 (patch)
treebc6e02e7368e6174a337441450284ded228d0f47
parent85753efabb0fadd37f21935534fb4938709b3348 (diff)
parent4c8fab6e1c5594e0b2a655a9089622ddd7ca00d5 (diff)
downloadriscv-tests-39fc8b09553a563865c274d891643c7246db6783.zip
riscv-tests-39fc8b09553a563865c274d891643c7246db6783.tar.gz
riscv-tests-39fc8b09553a563865c274d891643c7246db6783.tar.bz2
Merge pull request #509 from riscv-software-src/interlock
debug: Better interlock when interacting with gdb CLI.
-rw-r--r--debug/testlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index ba6057d..baa7783 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -796,6 +796,7 @@ class Gdb:
timeout = max(1, ops) * self.timeout
self.active_child.sendline(command)
try:
+ self.active_child.expect(re.escape(command), timeout=timeout)
self.active_child.expect("\n", timeout=timeout)
except pexpect.exceptions.TIMEOUT as exc:
raise CommandSendTimeout(command) from exc