Example #1
0
void StepOneThreadSuite::StepInstructionInSourceHaveSource()
{
    Step    steps[] = 
    {
        { { ExecEvent_Breakpoint,   Func_Scenario1Func0, 0x0005, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, Func_Scenario1Func0, 0x0006, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, Func_Scenario1Func0, 0x0008, 0 }, { Action_StepInstruction, true, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func1, 0x0000, 0 }, { Action_StepInstruction, true, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x0000, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x0000, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x0000, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x0000, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x0000, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x0002, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x0004, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x0007, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x000C, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x000C, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x000E, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func3, 0x0000, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func2, 0x0013, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func1, 0x0005, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func0, 0x000D, 0 }, { Action_Go, true, true } },
        { { ExecEvent_ProcessExit,  Func_None,           0,      0 }, { Action_Go, true, true } },
    };

    RunDebuggee( steps, _countof( steps ) );
}
Example #2
0
void StepOneThreadSuite::StepInstructionInAssembly()
{
    Step    steps[] = 
    {
        { { ExecEvent_Breakpoint, 0x1068, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1069, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x106B, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1030, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1010, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1010, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1010, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1010, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1010, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1012, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1014, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1017, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x101C, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x101C, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x101E, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1000, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1023, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1035, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1070, 0 }, { Action_Go, true, false } },
        { { ExecEvent_ProcessExit, 0, 0 }, { Action_Go, true, false } },
    };

    RunDebuggee( steps, _countof( steps ) );
}
Example #3
0
void StepOneThreadSuite::StepInstructionInSourceNoSource()
{
    Step    steps[] = 
    {
        { { ExecEvent_Breakpoint, 0x1068, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x1069, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x106B, 0 }, { Action_StepInstruction, true, true, true } },
        { { ExecEvent_StepComplete, 0x1030, 0 }, { Action_StepRange, true, true } },
        { { ExecEvent_StepComplete, 0x1035, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, 0x1070, 0 }, { Action_Go, true, true } },
        { { ExecEvent_ProcessExit, 0, 0 }, { Action_Go, true, true } },
    };

    RunDebuggee( steps, _countof( steps ) );
}
Example #4
0
void StepOneThreadSuite::StepInstructionOverInterruptedByBP()
{
    Step    steps[] = 
    {
        { { ExecEvent_Breakpoint,   Func_Scenario1Func0, 0x0005, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func0, 0x0006, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, Func_Scenario1Func0, 0x0008, 0 }, { Action_StepInstruction, true, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func1, 0x0000, 0 }, { Action_StepInstruction, false, true, false, Func_Scenario1Func2, 0x000C } },
        { { ExecEvent_Breakpoint,   Func_Scenario1Func2, 0x000C, 0 }, { Action_Go, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func1, 0x0005, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, Func_Scenario1Func0, 0x000D, 0 }, { Action_Go, true, true } },
        { { ExecEvent_ProcessExit,  Func_None,           0,      0 }, { Action_Go, true, true } },
    };

    RunDebuggee( steps, _countof( steps ) );
}
Example #5
0
void StepOneThreadSuite::StepInstructionOverInterruptedByBP()
{
    Step    steps[] = 
    {
        { { ExecEvent_Breakpoint, 0x1068, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, 0x1069, 0 }, { Action_StepInstruction, true, false } },
        { { ExecEvent_StepComplete, 0x106B, 0 }, { Action_StepInstruction, true, true, true } },
        { { ExecEvent_StepComplete, 0x1030, 0 }, { Action_StepInstruction, false, true, false, 0x101C } },
        { { ExecEvent_Breakpoint, 0x101C, 0 }, { Action_Go, true, true } },
        { { ExecEvent_StepComplete, 0x1035, 0 }, { Action_StepInstruction, true, true } },
        { { ExecEvent_StepComplete, 0x1070, 0 }, { Action_Go, true, true } },
        { { ExecEvent_ProcessExit, 0, 0 }, { Action_Go, true, true } },
    };

    RunDebuggee( steps, _countof( steps ) );
}