Skip to content

Commit e0a93d3

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Status DebuggerThread::DebugLaunch(const ProcessLaunchInfo &launch_info) {
5757
"lldb.plugin.process-windows.secondary[?]",
5858
[this, launch_info] { return DebuggerThreadLaunchRoutine(launch_info); });
5959
if (!secondary_thread) {
60-
result = Status(secondary_thread.takeError());
60+
result = Status::FromError(secondary_thread.takeError());
6161
LLDB_LOG(log, "couldn't launch debugger thread. {0}", result);
6262
}
6363

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ void ProcessWindows::OnDebuggerError(const Status &error, uint32_t type) {
821821
// If we haven't actually launched the process yet, this was an error
822822
// launching the process. Set the internal error and signal the initial
823823
// stop event so that the DoLaunch method wakes up and returns a failure.
824-
m_session_data->m_launch_error = error;
824+
m_session_data->m_launch_error = error.Clone();
825825
::SetEvent(m_session_data->m_initial_stop_event);
826826
LLDB_LOG(
827827
log,

0 commit comments

Comments
 (0)