================
@@ -191,17 +196,26 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
}
}
- // Second, try `expr` as a persistent variable.
+ // Case (2): Try `expr` as a persistent variable.
if (expr.starts_with("$"))
if (auto *state = target.GetPersistentExpressionStateForLanguage(
language.AsLanguageType()))
- if (auto var_sp = state->GetVariable(expr))
+ if (auto var_sp = state->GetVariable(expr)) {
if (auto valobj_sp = var_sp->GetValueObject()) {
+
+ if (verbosity == eDWIMPrintVerbosityFull) {
+ StringRef flags;
+ if (args.HasArgs())
+ flags = args.GetArgString();
+ result.AppendNoteWithFormatv("ran `expression {0}{1}`", flags,
+ expr);
+ }
----------------
hawkinsw wrote:
Thank you for the follow up! Of course, I will follow up as soon as possible
and request another review when I have made the changes!!
https://github.com/llvm/llvm-project/pull/215706
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits