================
@@ -135,6 +135,18 @@ std::vector<std::string> GetStrings(const 
llvm::json::Object *obj,
   return strs;
 }
 
+static std::string GetDescriptionTrimmed(lldb::SBValue &value) {
+  lldb::SBStream stream;
+  value.GetDescription(stream);
----------------
ashgti wrote:

Updated `bool SBValue::GetDescription(SBStream &description)` to return `false` 
for the `"No value"` case and this helper should return an empty string in that 
situation fallback back to the `<type> @ <pointer>` format.

https://github.com/llvm/llvm-project/pull/77026
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to