From fe70fdcfe5ced5a4032b7c4561f7cad6f011314b Mon Sep 17 00:00:00 2001 From: Crementif <26669564+Crementif@users.noreply.github.com> Date: Sat, 13 Jun 2026 20:35:12 +0200 Subject: [PATCH] debugger: Don't clear register views when continuing to run code --- src/gui/wxgui/debugger/RegisterWindow.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/gui/wxgui/debugger/RegisterWindow.cpp b/src/gui/wxgui/debugger/RegisterWindow.cpp index d9241bef..1e6605b1 100644 --- a/src/gui/wxgui/debugger/RegisterWindow.cpp +++ b/src/gui/wxgui/debugger/RegisterWindow.cpp @@ -232,12 +232,11 @@ void RegisterWindow::UpdateIntegerRegister(wxTextCtrl* label, wxTextCtrl* value, void RegisterWindow::OnUpdateView() { - PPCSnapshot snapshot = {}; - if (PPCInterpreter_t* hCPU = debugger_lockDebugSession(); hCPU) - { - snapshot = debugger_getSnapshotFromSession(hCPU); - debugger_unlockDebugSession(hCPU); - } + PPCInterpreter_t* hCPU = debugger_lockDebugSession(); + if (!hCPU) + return; + PPCSnapshot snapshot = debugger_getSnapshotFromSession(hCPU); + debugger_unlockDebugSession(hCPU); for (int i = 0; i < 32; ++i) { const uint32 registerValue = snapshot.gpr[i];