aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug/testlib.py')
-rw-r--r--debug/testlib.py7
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)