[Lldb-commits] [lldb] r150492 - /lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
Enrico Granata
granata.enrico at gmail.com
Tue Feb 14 10:01:27 PST 2012
Author: enrico
Date: Tue Feb 14 12:01:27 2012
New Revision: 150492
URL: http://llvm.org/viewvc/llvm-project?rev=150492&view=rev
Log: (empty)
Modified:
lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
Modified: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp?rev=150492&r1=150491&r2=150492&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp Tue Feb 14 12:01:27 2012
@@ -107,6 +107,20 @@
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,
More information about the lldb-commits
mailing list