From 05c17bc029d41beaaddb8d2d2186aa1cdfbf1d0e Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Tue, 8 Jun 2021 14:44:13 +0200 Subject: [PATCH] [PrivCPU] fixed debugger skipping over ebreak instructions --- riscemu/priv/PrivCPU.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/riscemu/priv/PrivCPU.py b/riscemu/priv/PrivCPU.py index 270f032..6d0e53a 100644 --- a/riscemu/priv/PrivCPU.py +++ b/riscemu/priv/PrivCPU.py @@ -91,7 +91,8 @@ class PrivCPU(CPU): self.launch_debug = False launch_debug_session(self, self.mmu, self.regs, "Launching debugger:") - self._run(verbose) + if not self.active_debug: + self._run(verbose) else: print() print(FMT_CPU + "Program stopped without exiting - perhaps you stopped the debugger?" + FMT_NONE)