From 61e640b08f662b35c2dbd7ee1633a13f08de0e16 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 29 Jun 2013 11:02:03 -0700 Subject: [PATCH] Add an inactive wait just to be safe. --- Windows/Debugger/Debugger_Disasm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Windows/Debugger/Debugger_Disasm.cpp b/Windows/Debugger/Debugger_Disasm.cpp index 7e1367d187..c52931b166 100644 --- a/Windows/Debugger/Debugger_Disasm.cpp +++ b/Windows/Debugger/Debugger_Disasm.cpp @@ -40,6 +40,9 @@ float breakpointColumnSizes[] = { enum { BPL_TYPE, BPL_OFFSET, BPL_SIZELABEL, BPL_OPCODE, BPL_HITS, BPL_ENABLED, BPL_COLUMNCOUNT }; +// How long (max) to wait for Core to pause before clearing temp breakpoints. +const int TEMP_BREAKPOINT_WAIT_MS = 100; + static FAR WNDPROC DefBreakpointListProc; static LRESULT CALLBACK BreakpointListProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) @@ -817,6 +820,7 @@ void CDisasm::SetDebugMode(bool _bDebug) // Update Dialog Windows if (_bDebug) { + Core_WaitInactive(TEMP_BREAKPOINT_WAIT_MS); CBreakPoints::ClearTemporaryBreakPoints(); updateBreakpointList();