diff options
author | Caroline Tice <ctice@apple.com> | 2010-11-16 05:07:41 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-11-16 05:07:41 +0000 |
commit | ef5c6d02f54ee66cbe467e7de6fc38a274ebe943 (patch) | |
tree | 1ad38da51946018d15fa004ed35a1567d63b8f99 /lldb/source/Core | |
parent | 7d19efd6ff3f95faa8be3b28425aa01f23e9aa29 (diff) | |
download | bcm5719-llvm-ef5c6d02f54ee66cbe467e7de6fc38a274ebe943.tar.gz bcm5719-llvm-ef5c6d02f54ee66cbe467e7de6fc38a274ebe943.zip |
Make processes use InputReaders for their input. Move the process
ReadThread stuff into the main Process class (out of the Process Plugins).
This has the (intended) side effect of disabling the command line tool
from reading input/commands while the process is running (the input is
directed to the running process rather than to the command interpreter).
llvm-svn: 119329
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); } |