diff options
Diffstat (limited to 'lldb/source/Core')
-rw-r--r-- | lldb/source/Core/Communication.cpp | 10 | ||||
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 3 |
2 files changed, 4 insertions, 9 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; diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index c96cbdff41b..179e4607c57 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -166,7 +166,7 @@ Debugger::FindTargetWithProcessID (lldb::pid_t pid) Debugger::Debugger () : UserID (g_unique_id++), DebuggerInstanceSettings (*GetSettingsController()), - m_input_comm("debugger.input", false), + m_input_comm("debugger.input"), m_input_file (), m_output_file (), m_error_file (), @@ -178,6 +178,7 @@ Debugger::Debugger () : m_input_readers (), m_input_reader_data () { + m_input_comm.SetCloseOnEOF(false); m_command_interpreter_ap->Initialize (); } |