mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
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
This commit is contained in:
@@ -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 ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user