Improved the packet throughput when debugging with GDB remote by over 3x on

darwin (not sure about other platforms).

Modified the communication and connection classes to not require the
BytesAvailable function. Now the "Read(...)" function has a timeout in
microseconds.

Fixed a lot of assertions that were firing off in certain cases and replaced
them with error output and code that can deal with the assertion case.

llvm-svn: 133224
This commit is contained in:
Greg Clayton committed 2011-06-17 01:22:15 +00:00
1 parent 2cd8327605
commit 73bf5dbd16
21 files changed
+391 -352

No files matched your search

-24
View File
@@ -58,30 +58,6 @@ SBCommunication::SetCloseOnEOF (bool b)
m_opaque->SetCloseOnEOF (b);
}
ConnectionStatus
SBCommunication::CheckIfBytesAvailable ()
{
if (m_opaque)
return m_opaque->BytesAvailable (0, NULL);
return eConnectionStatusNoConnection;
}
ConnectionStatus
SBCommunication::WaitForBytesAvailableInfinite ()
{
if (m_opaque)
return m_opaque->BytesAvailable (UINT32_MAX, NULL);
return eConnectionStatusNoConnection;
}
ConnectionStatus
SBCommunication::WaitForBytesAvailableWithTimeout (uint32_t timeout_usec)
{
if (m_opaque)
return m_opaque->BytesAvailable (timeout_usec, NULL);
return eConnectionStatusNoConnection;
}
ConnectionStatus
SBCommunication::Connect (const char *url)
{