From 74549c82adae283f99fc34b2229c11035ef0bf7f Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Tue, 19 Jul 2011 01:13:00 +0000 Subject: Initialize the all important automatic variable 'lldb::ConnectionStatus status' before invoking the Read(...) method to read in bytes. This seems to fix the infinite looping I was seeing on SnowLeopard while running the test suite. llvm-svn: 135461 --- lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/gdb-remote') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index c13328cd50f..a37469c3856 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -199,7 +199,7 @@ GDBRemoteCommunication::WaitForPacketWithTimeoutMicroSecondsNoLock (StringExtrac 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) -- cgit v1.2.3