Skip to content

Commit 7b76089

Browse files
committed
[lldb] Convert NativeProcessLinux to new Status API (NFC)
1 parent b798f4b commit 7b76089

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();
@@ -1905,13 +1905,13 @@ Status NativeProcessLinux::ResumeThread(NativeThreadLinux &thread,
19051905
// reflect it is running after this completes.
19061906
switch (state) {
19071907
case eStateRunning: {
1908-
const auto resume_result = thread.Resume(signo);
1908+
Status resume_result = thread.Resume(signo);
19091909
if (resume_result.Success())
19101910
SetState(eStateRunning, true);
19111911
return resume_result;
19121912
}
19131913
case eStateStepping: {
1914-
const auto step_result = thread.SingleStep(signo);
1914+
Status step_result = thread.SingleStep(signo);
19151915
if (step_result.Success())
19161916
SetState(eStateRunning, true);
19171917
return step_result;

0 commit comments

Comments
 (0)