[Lldb-commits] [lldb] 32abe5d - [lldb] Adapt WindowsMiniDump to new Status API

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 27 17:25:36 PDT 2024


Author: Adrian Prantl
Date: 2024-08-27T17:25:17-07:00
New Revision: 32abe5d49b758edef0f0c19090361a6fe85c4092

URL: https://github.com/llvm/llvm-project/commit/32abe5d49b758edef0f0c19090361a6fe85c4092
DIFF: https://github.com/llvm/llvm-project/commit/32abe5d49b758edef0f0c19090361a6fe85c4092.diff

LOG: [lldb] Adapt WindowsMiniDump to new Status API

Added: 
    

Modified: 
    lldb/source/Plugins/ObjectFile/PECOFF/WindowsMiniDump.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/ObjectFile/PECOFF/WindowsMiniDump.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/WindowsMiniDump.cpp
index 964787b2b9e6e0..e3938ad2f977dd 100644
--- a/lldb/source/Plugins/ObjectFile/PECOFF/WindowsMiniDump.cpp
+++ b/lldb/source/Plugins/ObjectFile/PECOFF/WindowsMiniDump.cpp
@@ -48,7 +48,7 @@ bool SaveMiniDump(const lldb::ProcessSP &process_sp,
   ::CloseHandle(file_handle);
   ::CloseHandle(process_handle);
   if (!result) {
-    error.SetError(::GetLastError(), lldb::eErrorTypeWin32);
+    error = Status(::GetLastError(), lldb::eErrorTypeWin32);
     return false;
   }
   return true;


        


More information about the lldb-commits mailing list