[Lldb-commits] [lldb] 1e98aa4 - [lldb] Convert ConnectionGenericFileWindows.cpp to new Status API (NFC)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 5 15:09:34 PDT 2024


Author: Adrian Prantl
Date: 2024-09-05T15:09:25-07:00
New Revision: 1e98aa4730b1b3b93205af74be26e04d5f876d10

URL: https://github.com/llvm/llvm-project/commit/1e98aa4730b1b3b93205af74be26e04d5f876d10
DIFF: https://github.com/llvm/llvm-project/commit/1e98aa4730b1b3b93205af74be26e04d5f876d10.diff

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

Added: 
    

Modified: 
    lldb/source/Host/windows/ConnectionGenericFileWindows.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp b/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
index 170444f56b3107..6a6153d6e34a08 100644
--- a/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
+++ b/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
@@ -236,7 +236,7 @@ size_t ConnectionGenericFile::Read(void *dst, size_t dst_len,
 finish:
   status = return_info.GetStatus();
   if (error_ptr)
-    *error_ptr = Status::FromError(return_info.GetError());
+    *error_ptr = return_info.GetError().Clone();
 
   // kBytesAvailableEvent is a manual reset event.  Make sure it gets reset
   // here so that any subsequent operations don't immediately see bytes
@@ -290,7 +290,7 @@ size_t ConnectionGenericFile::Write(const void *src, size_t src_len,
 finish:
   status = return_info.GetStatus();
   if (error_ptr)
-    *error_ptr = Status::FromError(return_info.GetError());
+    *error_ptr = return_info.GetError().Clone();
 
   IncrementFilePointer(return_info.GetBytes());
   Log *log = GetLog(LLDBLog::Connection);


        


More information about the lldb-commits mailing list