================
@@ -836,7 +837,10 @@ std::string 
VariableDescription::GetResult(protocol::EvaluateContext context) {
   // Try the SBValue::GetDescription(), which may call into language runtime
   // specific formatters (see ValueObjectPrinter).
   lldb::SBStream stream;
-  v.GetDescription(stream);
+  if (context == protocol::eEvaluateContextRepl)
----------------
ashgti wrote:

What does the short description look like?

It could be useful when you copy / paste to have context around the value 
copied, e.g. `(int[]) foo = {1, 2, 3}` gives me some additional context 
compared to just `{1, 2, 3}`.

https://github.com/llvm/llvm-project/pull/170644
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to