mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 12:58:41 +00:00
clear breakpoint hit counts on restart command
This commit is contained in:
@@ -2422,8 +2422,8 @@ d_tick(Arena *arena, D_TargetArray *targets, D_BreakpointArray *breakpoints, D_P
|
|||||||
if(processes.count != 0)
|
if(processes.count != 0)
|
||||||
{
|
{
|
||||||
d_cmd(D_CmdKind_KillAll);
|
d_cmd(D_CmdKind_KillAll);
|
||||||
d_cmd(D_CmdKind_LaunchAndRun);
|
|
||||||
}
|
}
|
||||||
|
d_cmd(D_CmdKind_LaunchAndRun);
|
||||||
}break;
|
}break;
|
||||||
case D_CmdKind_StepInto:
|
case D_CmdKind_StepInto:
|
||||||
case D_CmdKind_StepOver:
|
case D_CmdKind_StepOver:
|
||||||
|
|||||||
@@ -12368,9 +12368,10 @@ rd_frame(void)
|
|||||||
case RD_CmdKind_LaunchAndInit:
|
case RD_CmdKind_LaunchAndInit:
|
||||||
case RD_CmdKind_StepInto:
|
case RD_CmdKind_StepInto:
|
||||||
case RD_CmdKind_StepOver:
|
case RD_CmdKind_StepOver:
|
||||||
|
case RD_CmdKind_Restart:
|
||||||
{
|
{
|
||||||
CTRL_EntityList processes = ctrl_entity_list_from_kind(d_state->ctrl_entity_store, CTRL_EntityKind_Process);
|
CTRL_EntityList processes = ctrl_entity_list_from_kind(d_state->ctrl_entity_store, CTRL_EntityKind_Process);
|
||||||
if(processes.count == 0)
|
if(processes.count == 0 || kind == RD_CmdKind_Restart)
|
||||||
{
|
{
|
||||||
RD_EntityList bps = rd_query_cached_entity_list_with_kind(RD_EntityKind_Breakpoint);
|
RD_EntityList bps = rd_query_cached_entity_list_with_kind(RD_EntityKind_Breakpoint);
|
||||||
for(RD_EntityNode *n = bps.first; n != 0; n = n->next)
|
for(RD_EntityNode *n = bps.first; n != 0; n = n->next)
|
||||||
|
|||||||
Reference in New Issue
Block a user