summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Communication.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-12-04 02:39:47 +0000
committerGreg Clayton <gclayton@apple.com>2010-12-04 02:39:47 +0000
commitd46c87a1a86bfd945e7c83b8ab1a8e57aa37863e (patch)
tree9b39528ff18f7c7888d6f52b71a4ae83ce4940a2 /lldb/source/Core/Communication.cpp
parentf3eb96fccf373f429ff1fefb51ae5eacad95cf81 (diff)
downloadbcm5719-llvm-d46c87a1a86bfd945e7c83b8ab1a8e57aa37863e.tar.gz
bcm5719-llvm-d46c87a1a86bfd945e7c83b8ab1a8e57aa37863e.zip
More reverting of the EOF stuff as the API was changed which we don't want to
do. Closing on EOF is an option that can be set on the lldb_private::Communication or the lldb::SBCommunication objects after they are created. Of course the EOF support isn't hooked up, so they don't do anything at the moment, but they are left in so when the code is fixed, it will be easy to get working again. llvm-svn: 120885
Diffstat (limited to 'lldb/source/Core/Communication.cpp')
-rw-r--r--lldb/source/Core/Communication.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/source/Core/Communication.cpp b/lldb/source/Core/Communication.cpp
index 9258a0cd403..f9a4be1a6db 100644
--- a/lldb/source/Core/Communication.cpp
+++ b/lldb/source/Core/Communication.cpp
@@ -25,7 +25,7 @@ using namespace lldb_private;
//----------------------------------------------------------------------
// Constructor
//----------------------------------------------------------------------
-Communication::Communication(const char *name, bool close_on_eof) :
+Communication::Communication(const char *name) :
Broadcaster (name),
m_connection_ap (),
m_read_thread (LLDB_INVALID_HOST_THREAD),
@@ -34,7 +34,7 @@ Communication::Communication(const char *name, bool close_on_eof) :
m_bytes_mutex (Mutex::eMutexTypeRecursive),
m_callback (NULL),
m_callback_baton (NULL),
- m_close_on_eof (close_on_eof)
+ m_close_on_eof (true)
{
lldb_private::LogIfAnyCategoriesSet (LIBLLDB_LOG_OBJECT | LIBLLDB_LOG_COMMUNICATION,
@@ -291,12 +291,6 @@ Communication::ReadFromConnection (void *dst, size_t dst_len, ConnectionStatus &
}
bool
-Communication::CloseOnEOF ()
-{
- return m_close_on_eof;
-}
-
-bool
Communication::ReadThreadIsRunning ()
{
return m_read_thread != LLDB_INVALID_HOST_THREAD;
OpenPOWER on IntegriCloud