diff options
author | Tim Newsome <tim@sifive.com> | 2022-11-29 10:01:20 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2022-11-29 10:01:20 -0800 |
commit | 4c17a965d4685748735ac9f4b7295abb07771857 (patch) | |
tree | 97b8e4e7c7faf4e16fdfd21fb78c6aa12692738e | |
parent | 3ec15c2bf7a6fba48b57e4436f492f7b1b6e48c5 (diff) | |
download | riscv-tests-4c17a965d4685748735ac9f4b7295abb07771857.zip riscv-tests-4c17a965d4685748735ac9f4b7295abb07771857.tar.gz riscv-tests-4c17a965d4685748735ac9f4b7295abb07771857.tar.bz2 |
Add Gdb.expect()
-rw-r--r-- | debug/testlib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index 8ba51e2..d3fee5c 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -871,6 +871,9 @@ class Gdb: self.active_child.expect("stepi", timeout=self.timeout) return "" + def expect(self, text, ops=1): + return self.active_child.expect(text, timeout=ops * self.timeout) + def load(self): output = self.system_command("load", ops=1000) assert "failed" not in output |