(no commit message)

llvm-svn: 150492
This commit is contained in:
Enrico Granata 2012-02-14 18:01:27 +00:00
parent 99ae806aff
commit 6baf70aaab
1 changed files with 14 additions and 0 deletions

View File

@ -107,6 +107,20 @@ AppleObjCRuntime::GetObjectDescription (Stream &strm, Value &value, ExecutionCon
Value ret;
ret.SetContext(Value::eContextTypeClangType, return_qualtype);
if (exe_ctx.GetFramePtr() == NULL)
{
Thread *thread = exe_ctx.GetThreadPtr();
if (thread == NULL)
{
exe_ctx.SetThreadSP(process->GetThreadList().GetSelectedThread());
thread = exe_ctx.GetThreadPtr();
}
if (thread)
{
exe_ctx.SetFrameSP(thread->GetSelectedFrame());
}
}
// Now we're ready to call the function:
ClangFunction func (*exe_ctx.GetBestExecutionContextScope(),
ast_context,