Skip to content

Commit 21b15ab

Browse files
committed
[lldb] Convert NativeProcessLinux to new Status API (NFC)
(cherry picked from commit 7b76089)
1 parent 6a522fc commit 21b15ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,9 +1096,9 @@ Status NativeProcessLinux::Detach() {
10961096

10971097
for (const auto &thread : m_threads) {
10981098
Status e = Detach(thread->GetID());
1099+
// Save the error, but still attempt to detach from other threads.
10991100
if (e.Fail())
1100-
error =
1101-
e; // Save the error, but still attempt to detach from other threads.
1101+
error = e.Clone;
11021102
}
11031103

11041104
m_intel_pt_collector.Clear();
@@ -1908,13 +1908,13 @@ Status NativeProcessLinux::ResumeThread(NativeThreadLinux &thread,
19081908
// reflect it is running after this completes.
19091909
switch (state) {
19101910
case eStateRunning: {
1911-
const auto resume_result = thread.Resume(signo);
1911+
Status resume_result = thread.Resume(signo);
19121912
if (resume_result.Success())
19131913
SetState(eStateRunning, true);
19141914
return resume_result;
19151915
}
19161916
case eStateStepping: {
1917-
const auto step_result = thread.SingleStep(signo);
1917+
Status step_result = thread.SingleStep(signo);
19181918
if (step_result.Success())
19191919
SetState(eStateRunning, true);
19201920
return step_result;

0 commit comments

Comments
 (0)