diff options
Diffstat (limited to 'lldb/source/Core')
-rw-r--r-- | lldb/source/Core/ConnectionFileDescriptor.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 18 |
2 files changed, 4 insertions, 16 deletions
diff --git a/lldb/source/Core/ConnectionFileDescriptor.cpp b/lldb/source/Core/ConnectionFileDescriptor.cpp index 8029ad3b643..96d70bc1012 100644 --- a/lldb/source/Core/ConnectionFileDescriptor.cpp +++ b/lldb/source/Core/ConnectionFileDescriptor.cpp @@ -38,6 +38,7 @@ using namespace lldb_private; ConnectionFileDescriptor::ConnectionFileDescriptor () : Connection(), m_fd (-1), + m_is_socket (false), m_should_close_fd (false) { lldb_private::LogIfAnyCategoriesSet (LIBLLDB_LOG_CONNECTION | LIBLLDB_LOG_OBJECT, @@ -48,6 +49,7 @@ ConnectionFileDescriptor::ConnectionFileDescriptor () : ConnectionFileDescriptor::ConnectionFileDescriptor (int fd, bool owns_fd) : Connection(), m_fd (fd), + m_is_socket (false), m_should_close_fd (owns_fd) { lldb_private::LogIfAnyCategoriesSet (LIBLLDB_LOG_CONNECTION | LIBLLDB_LOG_OBJECT, diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 625969b2847..5e6f93c91d4 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -324,22 +324,8 @@ Debugger::DispatchInputCallback (void *baton, const void *bytes, size_t bytes_le void Debugger::DispatchInput (const char *bytes, size_t bytes_len) { - if (bytes == NULL || bytes_len == 0) - return; - - // TODO: implement the STDIO to the process as an input reader... - TargetSP target = GetSelectedTarget(); - if (target.get() != NULL) - { - ProcessSP process_sp = target->GetProcessSP(); - if (process_sp.get() != NULL - && StateIsRunningState (process_sp->GetState())) - { - Error error; - if (process_sp->PutSTDIN (bytes, bytes_len, error) == bytes_len) - return; - } - } +// if (bytes == NULL || bytes_len == 0) +// return; WriteToDefaultReader (bytes, bytes_len); } |