forked from OSchip/llvm-project
				
			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
This commit is contained in:
		
							parent
							
								
									09ddc43442
								
							
						
					
					
						commit
						74549c82ad
					
				| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue