summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2020-01-14 12:12:57 +0100
committerMed Ismail Bennani <medismail.bennani@gmail.com>2020-01-14 13:06:58 +0100
commit877723b7ce813d25fc4a358b7d2cb90468733a72 (patch)
tree41a92c0868e89ea31e051f65f1910e9f7cedee26 /lldb/source
parente27632c3026328e41b0d7dbf25631041e979a2f9 (diff)
downloadbcm5719-llvm-877723b7ce813d25fc4a358b7d2cb90468733a72.tar.gz
bcm5719-llvm-877723b7ce813d25fc4a358b7d2cb90468733a72.zip
[lldb/Expression] Improve interpreter error message with a non-running target
When trying to interpret an expression with a function call, if the process hasn't been launched, the expression fails to be interpreted and the user gets the following error message: ```error: Can't run the expression locally``` This message doesn't explain why the expression failed to be interpreted, that's why this patch improves the error message that is displayed when trying to run an expression while no process is running. rdar://11991708 Differential Revision: https://reviews.llvm.org/D72510 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
index dfd3e0e6e83..8abd1494288 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
@@ -1258,8 +1258,9 @@ lldb_private::Status ClangExpressionParser::PrepareForExecution(
interpret_error, interpret_function_calls);
if (!can_interpret && execution_policy == eExecutionPolicyNever) {
- err.SetErrorStringWithFormat("Can't run the expression locally: %s",
- interpret_error.AsCString());
+ err.SetErrorStringWithFormat(
+ "Can't evaluate the expression without a running target due to: %s",
+ interpret_error.AsCString());
return err;
}
}
OpenPOWER on IntegriCloud