[Lldb-commits] [lldb] r121712 - /lldb/trunk/source/Core/ConnectionFileDescriptor.cpp

Caroline Tice ctice at apple.com
Mon Dec 13 12:05:03 PST 2010


Author: ctice
Date: Mon Dec 13 14:05:03 2010
New Revision: 121712

URL: http://llvm.org/viewvc/llvm-project?rev=121712&view=rev
Log:
Revert a small but important part of the EOF handling code that Greg 
missed in his previous revert.


Modified:
    lldb/trunk/source/Core/ConnectionFileDescriptor.cpp

Modified: lldb/trunk/source/Core/ConnectionFileDescriptor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ConnectionFileDescriptor.cpp?rev=121712&r1=121711&r2=121712&view=diff
==============================================================================
--- lldb/trunk/source/Core/ConnectionFileDescriptor.cpp (original)
+++ lldb/trunk/source/Core/ConnectionFileDescriptor.cpp Mon Dec 13 14:05:03 2010
@@ -155,9 +155,13 @@
     Error error;
     ssize_t bytes_read = ::read (m_fd, dst, dst_len);
     if (bytes_read == 0)
+//        Disable the end-of-file special handling stuff for now.  Hopefully re-instate it (properly fixed) at a 
+//        later date:
     {
-        error.Clear(); // End-of-file.  Do not automatically close; pass along for the end-of-file handlers.
-        status = eConnectionStatusEndOfFile;
+//        error.Clear(); // End-of-file.  Do not automatically close; pass along for the end-of-file handlers.
+//        status = eConnectionStatusEndOfFile;
+        error.SetErrorStringWithFormat("End-of-file.\n");
+        status = eConnectionStatusLostConnection;
     }
     else if (bytes_read < 0)
     {





More information about the lldb-commits mailing list