[llvm-branch-commits] [lldb] r180911 - On Windows open want O_BINARY, without it it treats chr 26 as EOF.

Carlo Kok ck at remobjects.com
Thu May 2 01:08:14 PDT 2013


Author: carlokok
Date: Thu May  2 03:08:13 2013
New Revision: 180911

URL: http://llvm.org/viewvc/llvm-project?rev=180911&view=rev
Log:
On Windows open want O_BINARY, without it it treats chr 26 as EOF.

Modified:
    lldb/branches/windows/source/Host/common/File.cpp

Modified: lldb/branches/windows/source/Host/common/File.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/windows/source/Host/common/File.cpp?rev=180911&r1=180910&r2=180911&view=diff
==============================================================================
--- lldb/branches/windows/source/Host/common/File.cpp (original)
+++ lldb/branches/windows/source/Host/common/File.cpp Thu May  2 03:08:13 2013
@@ -229,6 +229,8 @@ File::Open (const char *path, uint32_t o
 #ifndef _WIN32
     if (options & eOpenOptionNonBlocking)
         oflag |= O_NONBLOCK;
+#else
+    oflag |= O_BINARY;
 #endif
 
     mode_t mode = 0;





More information about the llvm-branch-commits mailing list