[Lldb-commits] [lldb] Convert ValueObject::Dump() to return llvm::Error() (NFCish) (PR #95857)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 18 05:43:23 PDT 2024
================
@@ -1233,7 +1233,10 @@ bool SBValue::GetDescription(SBStream &description) {
DumpValueObjectOptions options;
options.SetUseDynamicType(m_opaque_sp->GetUseDynamic());
options.SetUseSyntheticValue(m_opaque_sp->GetUseSynthetic());
- value_sp->Dump(strm, options);
+ if (llvm::Error error = value_sp->Dump(strm, options)) {
+ strm << "error: " << toString(std::move(error));
+ return false;
----------------
DavidSpickett wrote:
Do we call this a bug fix, or keep the original behaviour of always returning true? Given that this is part of the API, whereas the interactive commands are internal.
https://github.com/llvm/llvm-project/pull/95857
More information about the lldb-commits
mailing list