RunThreadPlan should make sure the plan passed in is valid before running it.
<rdar://problem/13485541> llvm-svn: 178202
This commit is contained in:
parent
ea06f3bf4c
commit
7d7931de4a
|
@ -4460,6 +4460,12 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx,
|
|||
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.");
|
||||
|
|
Loading…
Reference in New Issue