diff options
| author | Ed Maste <emaste@freebsd.org> | 2014-03-03 15:37:30 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@freebsd.org> | 2014-03-03 15:37:30 +0000 |
| commit | 6fa32b6f545477a2d539499cb3c8702c3a47f870 (patch) | |
| tree | c15c7dd33bad5dd276c4bef18dea03db546235e3 /lldb/source/Expression/ClangUserExpression.cpp | |
| parent | 81eeab34553aba82a2d7511b0906b0678e6ab0a7 (diff) | |
| download | bcm5719-llvm-6fa32b6f545477a2d539499cb3c8702c3a47f870.tar.gz bcm5719-llvm-6fa32b6f545477a2d539499cb3c8702c3a47f870.zip | |
Don't require a valid thread if expr can be evaluated statically
This seems reasonable and the BackticksWithNoTargetTestCase suggests it
should be this way.
llvm-svn: 202722
Diffstat (limited to 'lldb/source/Expression/ClangUserExpression.cpp')
| -rw-r--r-- | lldb/source/Expression/ClangUserExpression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp index 524960bdf69..939f20d0694 100644 --- a/lldb/source/Expression/ClangUserExpression.cpp +++ b/lldb/source/Expression/ClangUserExpression.cpp @@ -763,7 +763,7 @@ ClangUserExpression::Execute (Stream &error_stream, // 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; |

