summaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2024-06-17 14:29:01 -0700
committerAdrian Prantl <aprantl@apple.com>2024-06-20 10:32:06 -0700
commitd1bc75c0bce141b94f9afadfde4e784760735ec0 (patch)
tree03017088ee5f5862a92de9630b95182e8f26bb70 /lldb/source/Commands/CommandObjectTarget.cpp
parent6bc71cdd32de0add80d620b1342b5549efff363a (diff)
Convert ValueObject::Dump() to return llvm::Error() (NFCish)
This change by itself has no measurable effect on the LLDB testsuite. I'm making it in preparation for threading through more errors in the Swift language plugin.
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectTarget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index ae6c6d5479a1..80181a9b3cb7 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -784,7 +784,8 @@ public:
options.SetRootValueObjectName(root_name);
- valobj_sp->Dump(s, options);
+ if (llvm::Error error = valobj_sp->Dump(s, options))
+ s << "error: " << toString(std::move(error));
}
static size_t GetVariableCallback(void *baton, const char *name,