Update release

This commit is contained in:
Zihan Chen
2020-11-08 06:43:43 -08:00
parent bdfb3af26a
commit 4898621b46
10 changed files with 1172 additions and 419 deletions
+17 -3
View File
@@ -2571,7 +2571,7 @@ InstructionLocation
}
/***********************************************************************
WfDebugger
WfDebugger Callback Handlers
***********************************************************************/
void WfDebugger::OnBlockExecution()
@@ -2617,7 +2617,7 @@ WfDebugger
if (breakPoint.action)
{
activated = breakPoint.action->EvaluateCondition(this);
breakPoint.action->PostAction(this);
breakPoint.action->PostAction(this, activated);
}
else
{
@@ -2792,7 +2792,7 @@ WfDebugger
}
/***********************************************************************
WfDebugger
WfDebugger BreakPoints
***********************************************************************/
#define TEST(AVAILABLE, KEY, MAP) if (AVAILABLE && available == MAP.Keys().Contains(KEY)) return false;
@@ -2937,6 +2937,7 @@ WfDebugger
breakPoints[index].id = index;
breakPoints[index].available = true;
breakPoints[index].enabled = true;
breakPoints[index].action = nullptr;
return index;
}
@@ -2954,6 +2955,11 @@ WfDebugger
return AddBreakPoint(WfBreakPoint::Ins(assembly, ins));
}
bool WfDebugger::IsBreakPointAvailable(vint index)
{
return 0 <= index && index < breakPoints.Count() && !freeBreakPointIndices.Contains(index);
}
vint WfDebugger::GetBreakPointCount()
{
return breakPoints.Count();
@@ -3006,6 +3012,10 @@ WfDebugger
breakException = value;
}
/***********************************************************************
WfDebugger Operations
***********************************************************************/
bool WfDebugger::Run()
{
if (state != PauseByOperation && state != PauseByBreakPoint)
@@ -3070,6 +3080,10 @@ WfDebugger
return true;
}
/***********************************************************************
WfDebugger
***********************************************************************/
WfDebugger::State WfDebugger::GetState()
{
return state;