[Lldb-commits] [lldb] r202722 - Don't require a valid thread if expr can be evaluated statically

Ed Maste emaste at freebsd.org
Mon Mar 3 07:37:31 PST 2014


Author: emaste
Date: Mon Mar  3 09:37:30 2014
New Revision: 202722

URL: http://llvm.org/viewvc/llvm-project?rev=202722&view=rev
Log:
Don't require a valid thread if expr can be evaluated statically

This seems reasonable and the BackticksWithNoTargetTestCase suggests it
should be this way.

Modified:
    lldb/trunk/source/Expression/ClangUserExpression.cpp

Modified: lldb/trunk/source/Expression/ClangUserExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangUserExpression.cpp?rev=202722&r1=202721&r2=202722&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangUserExpression.cpp (original)
+++ lldb/trunk/source/Expression/ClangUserExpression.cpp Mon Mar  3 09:37:30 2014
@@ -763,7 +763,7 @@ ClangUserExpression::Execute (Stream &er
     // expression, it's quite convenient to have these logs come out with the STEP log as well.
     Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_EXPRESSIONS | LIBLLDB_LOG_STEP));
 
-    if (!exe_ctx.HasThreadScope())
+    if (!exe_ctx.HasThreadScope() && !m_can_interpret)
     {
         error_stream.Printf("ClangUserExpression::Execute called with no thread selected.");
         return eExecutionSetupError;





More information about the lldb-commits mailing list