[Lldb-commits] [lldb] r178202 - RunThreadPlan should make sure the plan passed in is valid before running it.
Jim Ingham
jingham at apple.com
Wed Mar 27 17:05:34 PDT 2013
Author: jingham
Date: Wed Mar 27 19:05:34 2013
New Revision: 178202
URL: http://llvm.org/viewvc/llvm-project?rev=178202&view=rev
Log:
RunThreadPlan should make sure the plan passed in is valid before running it.
<rdar://problem/13485541>
Modified:
lldb/trunk/source/Target/Process.cpp
Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=178202&r1=178201&r2=178202&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Wed Mar 27 19:05:34 2013
@@ -4459,7 +4459,13 @@ Process::RunThreadPlan (ExecutionContext
errors.Printf("RunThreadPlan called with empty thread plan.");
return eExecutionSetupError;
}
-
+
+ if (!thread_plan_sp->ValidatePlan(NULL))
+ {
+ errors.Printf ("RunThreadPlan called with an invalid thread plan.");
+ return eExecutionSetupError;
+ }
+
if (exe_ctx.GetProcessPtr() != this)
{
errors.Printf("RunThreadPlan called on wrong process.");
More information about the lldb-commits
mailing list