diff options
author | Tim Newsome <tim@sifive.com> | 2023-09-29 09:39:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 09:39:01 -0700 |
commit | 02c03f589ff1a3109f1a11f69c4ffb604d9f3283 (patch) | |
tree | 58424f3416532bff6a7551f1b9ed08901aae9bb4 | |
parent | 2eb4c6227c56989f71e893bd879949da7db73d65 (diff) | |
parent | 3cc4fed6cd0937d5a2b81d22142fc436428a1a95 (diff) | |
download | riscv-tests-02c03f589ff1a3109f1a11f69c4ffb604d9f3283.zip riscv-tests-02c03f589ff1a3109f1a11f69c4ffb604d9f3283.tar.gz riscv-tests-02c03f589ff1a3109f1a11f69c4ffb604d9f3283.tar.bz2 |
Merge pull request #506 from riscv-software-src/interrupt_all
debug: Fix interrupt_all() to restore state.
-rw-r--r-- | debug/testlib.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index 2c59af2..e2c5284 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -896,9 +896,10 @@ class Gdb: return self.active_child.before.strip().decode() def interrupt_all(self): - for child in self.children: - self.select_child(child) - self.interrupt() + with PrivateState(self): + for child in self.children: + self.select_child(child) + self.interrupt() def x(self, address, size='w', count=1): output = self.command(f"x/{count}{size} {address}", ops=count / 16) |