RunThreadPlan should make sure the plan passed in is valid before running it.

<rdar://problem/13485541>

llvm-svn: 178202
This commit is contained in:
Jim Ingham 2013-03-28 00:05:34 +00:00
parent ea06f3bf4c
commit 7d7931de4a
1 changed files with 7 additions and 1 deletions

View File

@ -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.");