diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-07-19 01:13:00 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-19 01:13:00 +0000 |
commit | 74549c82adae283f99fc34b2229c11035ef0bf7f (patch) | |
tree | 38f4e9fa3c58e5d721ae51e1a1230ec0a878530e /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | |
parent | 09ddc434422eca14c4c3349379926d82f9ed0506 (diff) | |
download | bcm5719-llvm-74549c82adae283f99fc34b2229c11035ef0bf7f.tar.gz bcm5719-llvm-74549c82adae283f99fc34b2229c11035ef0bf7f.zip |
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |