Skip to content

Commit

Permalink
debug: Fix interrupt_all() to restore state.
Browse files Browse the repository at this point in the history
  • Loading branch information
timsifive committed Sep 28, 2023
1 parent d4eaa5b commit 3cc4fed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions debug/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,9 +896,10 @@ def interrupt(self, ops=None):
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)
Expand Down

0 comments on commit 3cc4fed

Please sign in to comment.