Author: jingham
Date: Mon Mar 3 13:16:45 2014
New Revision: 202740
URL: http://llvm.org/viewvc/llvm-project?rev=202740&view=rev
Log:
Only require thread scope when we're about to run the function on a thread.
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=202740&r1=202739&r2=202740&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangUserExpression.cpp (original)
+++ lldb/trunk/source/Expression/ClangUserExpression.cpp Mon Mar 3 13:16:45
2014
@@ -763,12 +763,6 @@ 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() && !m_can_interpret)
- {
- error_stream.Printf("ClangUserExpression::Execute called with no
thread selected.");
- return eExecutionSetupError;
- }
-
if (m_jit_start_addr != LLDB_INVALID_ADDRESS || m_can_interpret)
{
lldb::addr_t struct_address = LLDB_INVALID_ADDRESS;
@@ -829,6 +823,12 @@ ClangUserExpression::Execute (Stream &er
}
else
{
+ if (!exe_ctx.HasThreadScope())
+ {
+ error_stream.Printf("ClangUserExpression::Execute called with
no thread selected.");
+ return eExecutionSetupError;
+ }
+
Address wrapper_address (m_jit_start_addr);
llvm::SmallVector <lldb::addr_t, 3> args;
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits