1
0
Fork 0

DBG: Allow GUI to initialize once if no debug events are selected

This commit is contained in:
Nukem 2016-01-18 23:42:20 -05:00
parent 62c6408007
commit 4464b2be26
1 changed files with 4 additions and 3 deletions

View File

@ -829,8 +829,11 @@ static void cbSystemBreakpoint(void* ExceptionData)
{
hActiveThread = ThreadGetHandle(((DEBUG_EVENT*)GetDebugData())->dwThreadId);
// Update GUI (this should be the first triggered event)
duint cip = GetContextDataEx(hActiveThread, UE_CIP);
GuiSetDebugState(running);
GuiDumpAt(MemFindBaseAddr(cip, 0, true)); //dump somewhere
DebugUpdateGui(cip, true);
//log message
if(bIsAttached)
@ -846,10 +849,8 @@ static void cbSystemBreakpoint(void* ExceptionData)
if(bIsAttached ? settingboolget("Events", "AttachBreakpoint") : settingboolget("Events", "SystemBreakpoint"))
{
//update GUI
GuiSetDebugState(paused);
DebugUpdateGui(cip, true);
//lock
GuiSetDebugState(paused);
lock(WAITID_RUN);
SetForegroundWindow(GuiGetWindowHandle());
PLUG_CB_PAUSEDEBUG pauseInfo;