aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2023-03-15 13:59:46 -0700
committerDave Lee <davelee.com@gmail.com>2023-03-15 14:00:00 -0700
commit9e6a65f52ca6263795d81bde220fb4c80b7b05ec (patch)
tree1ba60e68af8d9771e776b22c0271d1fad85d93f1 /lldb/source/Commands/CommandObjectExpression.cpp
parent484c622760e2a46aa1b52c7a791ee59543364225 (diff)
downloadllvm-9e6a65f52ca6263795d81bde220fb4c80b7b05ec.zip
llvm-9e6a65f52ca6263795d81bde220fb4c80b7b05ec.tar.gz
llvm-9e6a65f52ca6263795d81bde220fb4c80b7b05ec.tar.bz2
Revert "[lldb] Change dwim-print to default to disabled persistent results"
This reverts commit 8bad4ae679df6fc7dbd016dccbd3da34206e836b.
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index 2658677..63b9236 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -151,7 +151,7 @@ Status CommandObjectExpression::CommandOptions::SetOptionValue(
bool persist_result =
OptionArgParser::ToBoolean(option_arg, true, &success);
if (success)
- suppress_persistent_result = !persist_result ? eLazyBoolYes : eLazyBoolNo;
+ suppress_persistent_result = !persist_result;
else
error.SetErrorStringWithFormat(
"could not convert \"%s\" to a boolean value.",
@@ -187,7 +187,7 @@ void CommandObjectExpression::CommandOptions::OptionParsingStarting(
auto_apply_fixits = eLazyBoolCalculate;
top_level = false;
allow_jit = true;
- suppress_persistent_result = eLazyBoolCalculate;
+ suppress_persistent_result = false;
}
llvm::ArrayRef<OptionDefinition>
@@ -202,9 +202,8 @@ CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(
options.SetCoerceToId(display_opts.use_objc);
// Explicitly disabling persistent results takes precedence over the
// m_verbosity/use_objc logic.
- if (suppress_persistent_result != eLazyBoolCalculate)
- options.SetSuppressPersistentResult(suppress_persistent_result ==
- eLazyBoolYes);
+ if (suppress_persistent_result)
+ options.SetSuppressPersistentResult(true);
else if (m_verbosity == eLanguageRuntimeDescriptionDisplayVerbosityCompact)
options.SetSuppressPersistentResult(display_opts.use_objc);
options.SetUnwindOnError(unwind_on_error);