From 73bf5dbd16d91cc70da178f4bf3fecc96471f7c2 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 17 Jun 2011 01:22:15 +0000 Subject: 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 --- lldb/source/Core/ConnectionSharedMemory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lldb/source/Core/ConnectionSharedMemory.cpp') diff --git a/lldb/source/Core/ConnectionSharedMemory.cpp b/lldb/source/Core/ConnectionSharedMemory.cpp index 943e0c339a7..625f17a0985 100644 --- a/lldb/source/Core/ConnectionSharedMemory.cpp +++ b/lldb/source/Core/ConnectionSharedMemory.cpp @@ -80,7 +80,11 @@ ConnectionSharedMemory::Disconnect (Error *error_ptr) } size_t -ConnectionSharedMemory::Read (void *dst, size_t dst_len, ConnectionStatus &status, Error *error_ptr) +ConnectionSharedMemory::Read (void *dst, + size_t dst_len, + uint32_t timeout_usec, + ConnectionStatus &status, + Error *error_ptr) { status = eConnectionStatusSuccess; return 0; -- cgit v1.2.3