aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2021-06-22 16:12:56 +0000
committerDavid Spickett <david.spickett@linaro.org>2021-06-23 11:25:10 +0000
commit1b1c8e4a984c07a3c985408d3d80c8e24e60d3d1 (patch)
tree74bb9f4682e8d21639dc41b99dd781788c0e82b7 /lldb/source/Interpreter/CommandObject.cpp
parent3c4dbf6ea9a06d0e5b460895bc5677ca7e382b4e (diff)
downloadllvm-1b1c8e4a984c07a3c985408d3d80c8e24e60d3d1.zip
llvm-1b1c8e4a984c07a3c985408d3d80c8e24e60d3d1.tar.gz
llvm-1b1c8e4a984c07a3c985408d3d80c8e24e60d3d1.tar.bz2
[lldb] Remove CommandReturnObject's SetError(StringRef)
Replacing existing uses with AppendError. SetError is also part of the SBI API. This remains but instead of calling the underlying SetError it will call AppendError. Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D104768
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 51cb85f..5fa8468 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -256,7 +256,7 @@ bool CommandObject::CheckRequirements(CommandReturnObject &result) {
if (GetFlags().Test(eCommandProcessMustBeTraced)) {
Target *target = m_exe_ctx.GetTargetPtr();
if (target && !target->GetTrace()) {
- result.SetError("Process is not being traced.");
+ result.AppendError("Process is not being traced.");
return false;
}
}