[Lldb-commits] [lldb] r135695 - /lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp

Johnny Chen johnny.chen at apple.com
Thu Jul 21 12:00:59 PDT 2011


Author: johnny
Date: Thu Jul 21 14:00:59 2011
New Revision: 135695

URL: http://llvm.org/viewvc/llvm-project?rev=135695&view=rev
Log:
Initialize the all important automatic variable 'lldb::ConnectionStatus status' before
invoking the Read(...) method to read in bytes.  Similar to r135461.

Modified:
    lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp

Modified: lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp?rev=135695&r1=135694&r2=135695&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp (original)
+++ lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp Thu Jul 21 14:00:59 2011
@@ -187,7 +187,7 @@
     bool timed_out = false;
     while (IsConnected() && !timed_out)
     {
-        lldb::ConnectionStatus status;
+        lldb::ConnectionStatus status = eConnectionStatusNoConnection;
         size_t bytes_read = Read (buffer, sizeof(buffer), timeout_usec, status, &error);
         
         if (log)





More information about the lldb-commits mailing list