[Lldb-commits] [lldb] 67fb8d1 - [lldb] Convert ProcessDebugger.cpp to new Status API (NFC)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 5 16:12:29 PDT 2024


Author: Adrian Prantl
Date: 2024-09-05T16:12:17-07:00
New Revision: 67fb8d15c993f5695cf944b16022a9ee49b9252d

URL: https://github.com/llvm/llvm-project/commit/67fb8d15c993f5695cf944b16022a9ee49b9252d
DIFF: https://github.com/llvm/llvm-project/commit/67fb8d15c993f5695cf944b16022a9ee49b9252d.diff

LOG: [lldb] Convert ProcessDebugger.cpp to new Status API (NFC)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/Windows/Common/ProcessDebugger.cpp b/lldb/source/Plugins/Process/Windows/Common/ProcessDebugger.cpp
index 9fc8077851d257..bde72d61b0fee0 100644
--- a/lldb/source/Plugins/Process/Windows/Common/ProcessDebugger.cpp
+++ b/lldb/source/Plugins/Process/Windows/Common/ProcessDebugger.cpp
@@ -560,7 +560,7 @@ void ProcessDebugger::OnDebuggerError(const Status &error, uint32_t type) {
     // If we haven't actually launched the process yet, this was an error
     // launching the process.  Set the internal error and signal the initial
     // stop event so that the DoLaunch method wakes up and returns a failure.
-    m_session_data->m_launch_error = error;
+    m_session_data->m_launch_error = error.Clone();
     ::SetEvent(m_session_data->m_initial_stop_event);
     LLDB_LOG(log,
              "Error {0} occurred launching the process before the initial "
@@ -582,7 +582,7 @@ Status ProcessDebugger::WaitForDebuggerConnection(DebuggerThreadSP debugger,
     LLDB_LOG(log, "hit loader breakpoint, returning.");
 
     process = debugger->GetProcess();
-    return m_session_data->m_launch_error;
+    return m_session_data->m_launch_error.Clone();
   } else
     return Status(::GetLastError(), eErrorTypeWin32);
 }


        


More information about the lldb-commits mailing list