[Lldb-commits] [lldb] r179578 - New CallNext action for the test case that causes the next action in the sequence to be called right away

Enrico Granata egranata at apple.com
Mon Apr 15 16:52:53 PDT 2013


Author: enrico
Date: Mon Apr 15 18:52:53 2013
New Revision: 179578

URL: http://llvm.org/viewvc/llvm-project?rev=179578&view=rev
Log:
New CallNext action for the test case that causes the next action in the sequence to be called right away

Modified:
    lldb/trunk/tools/lldb-perf/lib/TestCase.cpp
    lldb/trunk/tools/lldb-perf/lib/TestCase.h

Modified: lldb/trunk/tools/lldb-perf/lib/TestCase.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-perf/lib/TestCase.cpp?rev=179578&r1=179577&r2=179578&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-perf/lib/TestCase.cpp (original)
+++ lldb/trunk/tools/lldb-perf/lib/TestCase.cpp Mon Apr 15 18:52:53 2013
@@ -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;
             }
         }
 

Modified: lldb/trunk/tools/lldb-perf/lib/TestCase.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-perf/lib/TestCase.h?rev=179578&r1=179577&r2=179578&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-perf/lib/TestCase.h (original)
+++ lldb/trunk/tools/lldb-perf/lib/TestCase.h Mon Apr 15 18:52:53 2013
@@ -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





More information about the lldb-commits mailing list