summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ConnectionSharedMemory.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-06-17 01:22:15 +0000
committerGreg Clayton <gclayton@apple.com>2011-06-17 01:22:15 +0000
commit73bf5dbd16d91cc70da178f4bf3fecc96471f7c2 (patch)
tree0af9a600c375f2376a73be9d0f49ce8b969c6c0b /lldb/source/Core/ConnectionSharedMemory.cpp
parent2cd8327605091d34bfcbc0a61901c7ad3bfb996c (diff)
downloadbcm5719-llvm-73bf5dbd16d91cc70da178f4bf3fecc96471f7c2.tar.gz
bcm5719-llvm-73bf5dbd16d91cc70da178f4bf3fecc96471f7c2.zip
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
Diffstat (limited to 'lldb/source/Core/ConnectionSharedMemory.cpp')
-rw-r--r--lldb/source/Core/ConnectionSharedMemory.cpp6
1 files changed, 5 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud