diff options
author | David Spickett <david.spickett@linaro.org> | 2021-06-22 16:12:56 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2021-06-23 11:25:10 +0000 |
commit | 1b1c8e4a984c07a3c985408d3d80c8e24e60d3d1 (patch) | |
tree | 74bb9f4682e8d21639dc41b99dd781788c0e82b7 /lldb/source/Commands/CommandObjectThread.cpp | |
parent | 3c4dbf6ea9a06d0e5b460895bc5677ca7e382b4e (diff) | |
download | llvm-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/Commands/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 809dce3..1d31f11 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -1728,7 +1728,7 @@ public: true /* condense_trivial */, m_options.m_unreported); // If we didn't find a TID, stop here and return an error. if (!success) { - result.SetError("Error dumping plans:"); + result.AppendError("Error dumping plans:"); result.AppendError(tmp_strm.GetString()); return false; } @@ -1966,7 +1966,7 @@ public: TraceSP trace_sp = process_sp->GetTarget().GetTrace(); if (llvm::Error err = trace_sp->Stop(tids)) - result.SetError(toString(std::move(err))); + result.AppendError(toString(std::move(err))); else result.SetStatus(eReturnStatusSuccessFinishResult); @@ -2091,7 +2091,7 @@ protected: trace_sp->GetCursorPosition(*thread_sp)) - m_consecutive_repetitions * count; if (position < 0) - result.SetError("error: no more data"); + result.AppendError("error: no more data"); else trace_sp->DumpTraceInstructions(*thread_sp, result.GetOutputStream(), count, position, m_options.m_raw); |