Skip to content

Commit 67fb8d1

Browse files
committed
[lldb] Convert ProcessDebugger.cpp to new Status API (NFC)
1 parent c883452 commit 67fb8d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Plugins/Process/Windows/Common/ProcessDebugger.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ void ProcessDebugger::OnDebuggerError(const Status &error, uint32_t type) {
560560
// If we haven't actually launched the process yet, this was an error
561561
// launching the process. Set the internal error and signal the initial
562562
// stop event so that the DoLaunch method wakes up and returns a failure.
563-
m_session_data->m_launch_error = error;
563+
m_session_data->m_launch_error = error.Clone();
564564
::SetEvent(m_session_data->m_initial_stop_event);
565565
LLDB_LOG(log,
566566
"Error {0} occurred launching the process before the initial "
@@ -582,7 +582,7 @@ Status ProcessDebugger::WaitForDebuggerConnection(DebuggerThreadSP debugger,
582582
LLDB_LOG(log, "hit loader breakpoint, returning.");
583583

584584
process = debugger->GetProcess();
585-
return m_session_data->m_launch_error;
585+
return m_session_data->m_launch_error.Clone();
586586
} else
587587
return Status(::GetLastError(), eErrorTypeWin32);
588588
}

0 commit comments

Comments
 (0)