mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
New CallNext action for the test case that causes the next action in the sequence to be called right away
llvm-svn: 179578
This commit is contained in:
parent
a75418dbd6
commit
6f2b4807ee
@ -255,6 +255,7 @@ TestCase::Loop ()
|
||||
|
||||
if (call_test_step)
|
||||
{
|
||||
do_the_call:
|
||||
if (m_verbose)
|
||||
printf("RUNNING STEP %d\n",m_step);
|
||||
ActionWanted action;
|
||||
@ -305,6 +306,9 @@ TestCase::Loop ()
|
||||
printf("kill\n");
|
||||
m_process.Kill();
|
||||
return;
|
||||
case ActionWanted::Type::eCallNext:
|
||||
goto do_the_call;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,7 @@ public:
|
||||
eContinue,
|
||||
eStepOut,
|
||||
eRelaunch,
|
||||
eCallNext,
|
||||
eKill
|
||||
} type;
|
||||
lldb::SBThread thread;
|
||||
@ -78,6 +79,13 @@ public:
|
||||
type = Type::eKill;
|
||||
thread = lldb::SBThread();
|
||||
}
|
||||
|
||||
void
|
||||
CallNext ()
|
||||
{
|
||||
type = Type::eCallNext;
|
||||
thread = lldb::SBThread();
|
||||
}
|
||||
};
|
||||
|
||||
virtual
|
||||
|
Loading…
Reference in New Issue
Block a user