Skip to content

Commit a9e2b38

Browse files
committed
[lldb] Convert ProcessDebugger.cpp to new Status API (NFC)
(cherry picked from commit 67fb8d1)
1 parent 914b7a7 commit a9e2b38

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
@@ -547,7 +547,7 @@ void ProcessDebugger::OnDebuggerError(const Status &error, uint32_t type) {
547547
// If we haven't actually launched the process yet, this was an error
548548
// launching the process. Set the internal error and signal the initial
549549
// stop event so that the DoLaunch method wakes up and returns a failure.
550-
m_session_data->m_launch_error = error;
550+
m_session_data->m_launch_error = error.Clone();
551551
::SetEvent(m_session_data->m_initial_stop_event);
552552
LLDB_LOG(log,
553553
"Error {0} occurred launching the process before the initial "
@@ -569,7 +569,7 @@ Status ProcessDebugger::WaitForDebuggerConnection(DebuggerThreadSP debugger,
569569
LLDB_LOG(log, "hit loader breakpoint, returning.");
570570

571571
process = debugger->GetProcess();
572-
return m_session_data->m_launch_error;
572+
return m_session_data->m_launch_error.Clone();
573573
} else
574574
return Status(::GetLastError(), eErrorTypeWin32);
575575
}

0 commit comments

Comments
 (0)