Skip to content

Commit

Permalink
Merge pull request riscv#509 from riscv-software-src/interlock
Browse files Browse the repository at this point in the history
debug: Better interlock when interacting with gdb CLI.
  • Loading branch information
timsifive authored Sep 29, 2023
2 parents 85753ef + 4c8fab6 commit 39fc8b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions debug/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ def command(self, command, ops=1, reset_delays=0):
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
Expand Down

0 comments on commit 39fc8b0

Please sign in to comment.