From d46c87a1a86bfd945e7c83b8ab1a8e57aa37863e Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sat, 4 Dec 2010 02:39:47 +0000 Subject: 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 --- lldb/source/API/SBCommunication.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'lldb/source/API/SBCommunication.cpp') diff --git a/lldb/source/API/SBCommunication.cpp b/lldb/source/API/SBCommunication.cpp index 6aa1e244d3c..9db6c444902 100644 --- a/lldb/source/API/SBCommunication.cpp +++ b/lldb/source/API/SBCommunication.cpp @@ -24,8 +24,8 @@ SBCommunication::SBCommunication() : { } -SBCommunication::SBCommunication(const char * broadcaster_name, bool close_on_eof) : - m_opaque (new Communication (broadcaster_name, close_on_eof)), +SBCommunication::SBCommunication(const char * broadcaster_name) : + m_opaque (new Communication (broadcaster_name)), m_opaque_owned (true) { LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API)); @@ -43,6 +43,21 @@ SBCommunication::~SBCommunication() m_opaque_owned = false; } +bool +SBCommunication::GetCloseOnEOF () +{ + if (m_opaque) + return m_opaque->GetCloseOnEOF (); + return false; +} + +void +SBCommunication::SetCloseOnEOF (bool b) +{ + if (m_opaque) + m_opaque->SetCloseOnEOF (b); +} + ConnectionStatus SBCommunication::CheckIfBytesAvailable () { -- cgit v1.2.3