Modifications to breakpoint properties now update the breakpoint UI explicitly. Relevant for plugins, command line BP calls
This commit is contained in:
parent
8daf1f5942
commit
6eb93678de
|
@ -230,6 +230,7 @@ bool BpSetBreakCondition(duint Address, BP_TYPE Type, const char* Condition)
|
|||
return false;
|
||||
|
||||
strcpy_s(bpInfo->breakCondition, Condition);
|
||||
DebugUpdateBreakpointsViewAsync();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -245,6 +246,7 @@ bool BpSetLogText(duint Address, BP_TYPE Type, const char* Log)
|
|||
return false;
|
||||
|
||||
strcpy_s(bpInfo->logText, Log);
|
||||
DebugUpdateBreakpointsViewAsync();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -290,6 +292,7 @@ bool BpSetCommandCondition(duint Address, BP_TYPE Type, const char* Condition)
|
|||
return false;
|
||||
|
||||
strcpy_s(bpInfo->commandCondition, Condition);
|
||||
DebugUpdateBreakpointsViewAsync();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -305,6 +308,8 @@ bool BpSetFastResume(duint Address, BP_TYPE Type, bool fastResume)
|
|||
return false;
|
||||
|
||||
bpInfo->fastResume = fastResume;
|
||||
DebugUpdateBreakpointsViewAsync();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -372,7 +372,6 @@ void DebugUpdateGuiSetState(duint disasm_addr, bool stack, DBGSTATE state = paus
|
|||
GuiSetDebugState(state);
|
||||
DebugUpdateGui(disasm_addr, stack);
|
||||
}
|
||||
|
||||
void DebugUpdateGuiSetStateAsync(duint disasm_addr, bool stack, DBGSTATE state)
|
||||
{
|
||||
//correctly orders the GuiSetDebugState DebugUpdateGui to prevent drawing inconsistencies
|
||||
|
@ -386,6 +385,13 @@ void DebugUpdateGuiAsync(duint disasm_addr, bool stack)
|
|||
DebugUpdateGuiTask.WakeUp(disasm_addr, stack);
|
||||
}
|
||||
|
||||
void DebugUpdateBreakpointsViewAsync()
|
||||
{
|
||||
static TaskThread_<decltype(&GuiUpdateBreakpointsView)> BreakpointsUpdateGuiTask(&GuiUpdateBreakpointsView);
|
||||
BreakpointsUpdateGuiTask.WakeUp();
|
||||
}
|
||||
|
||||
|
||||
void DebugUpdateStack(duint dumpAddr, duint csp, bool forceDump)
|
||||
{
|
||||
if(GuiIsUpdateDisabled())
|
||||
|
|
|
@ -70,6 +70,7 @@ void dbgsetattachevent(HANDLE handle);
|
|||
void DebugUpdateGui(duint disasm_addr, bool stack);
|
||||
void DebugUpdateGuiAsync(duint disasm_addr, bool stack);
|
||||
void DebugUpdateGuiSetStateAsync(duint disasm_addr, bool stack, DBGSTATE state = paused);
|
||||
void DebugUpdateBreakpointsViewAsync();
|
||||
void DebugUpdateStack(duint dumpAddr, duint csp, bool forceDump = false);
|
||||
void GuiSetDebugStateAsync(DBGSTATE state);
|
||||
void dbgsetskipexceptions(bool skip);
|
||||
|
|
Loading…
Reference in New Issue