From 3cc4fed6cd0937d5a2b81d22142fc436428a1a95 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 29 Aug 2023 14:06:58 -0700 Subject: debug: Fix interrupt_all() to restore state. --- debug/testlib.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'debug') diff --git a/debug/testlib.py b/debug/testlib.py index 435b41b..104b29e 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) -- cgit v1.1