New CallNext action for the test case that causes the next action in the sequence to be called right away
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@179578 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/lldb-perf/lib/TestCase.cpp b/tools/lldb-perf/lib/TestCase.cpp
index b3aef6e..9d58fa2 100644
--- a/tools/lldb-perf/lib/TestCase.cpp
+++ b/tools/lldb-perf/lib/TestCase.cpp
@@ -255,6 +255,7 @@
if (call_test_step)
{
+ do_the_call:
if (m_verbose)
printf("RUNNING STEP %d\n",m_step);
ActionWanted action;
@@ -305,6 +306,9 @@
printf("kill\n");
m_process.Kill();
return;
+ case ActionWanted::Type::eCallNext:
+ goto do_the_call;
+ break;
}
}
diff --git a/tools/lldb-perf/lib/TestCase.h b/tools/lldb-perf/lib/TestCase.h
index 8955798..e882ff3 100644
--- a/tools/lldb-perf/lib/TestCase.h
+++ b/tools/lldb-perf/lib/TestCase.h
@@ -31,6 +31,7 @@
eContinue,
eStepOut,
eRelaunch,
+ eCallNext,
eKill
} type;
lldb::SBThread thread;
@@ -78,6 +79,13 @@
type = Type::eKill;
thread = lldb::SBThread();
}
+
+ void
+ CallNext ()
+ {
+ type = Type::eCallNext;
+ thread = lldb::SBThread();
+ }
};
virtual