debugger: fix crash when adding breakpoint

Checking the item in the event handler that is triggered when an option is checked caused recursion stack overflow

fixes: #1876
This commit is contained in:
goeiecool9999 2026-04-16 10:31:04 +02:00
parent 125765c913
commit 553990a25e

View File

@ -155,7 +155,6 @@ void BreakpointWindow::OnBreakpointToggled(wxListEvent& event)
DebuggerBreakpoint* bp = (DebuggerBreakpoint*)m_breakpoints->GetItemData(index);
const uint32 address = std::stoul(line.ToStdString(), nullptr, 16);
debugger_toggleBreakpoint(address, state, bp);
m_breakpoints->CheckItem(index, state);
}
}