summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2015-02-10 21:09:04 +0000
committerVince Harron <vharron@google.com>2015-02-10 21:09:04 +0000
commitdf3f00f30a83ba0e526ad13097dd4f841f6045a6 (patch)
tree2df9dea155ccb0d88a601587dfe7037e10b1b344 /lldb/source/Target/Process.cpp
parentc008539736dea40fc1982a6d6cdd4c8c81129222 (diff)
downloadbcm5719-llvm-df3f00f30a83ba0e526ad13097dd4f841f6045a6.tar.gz
bcm5719-llvm-df3f00f30a83ba0e526ad13097dd4f841f6045a6.zip
Fix 'process launch -i' for remote processes
We want to forward stdin when stdio is not disabled and when we're not redirecting stdin from a file. renamed m_stdio_disable to m_stdin_forward and inverted value because that's what we want to remember. There was previously a bug that if you redirected stdin from a file, stdout and stderr would also be redirected to /dev/null Adds support for remote target to TestProcessIO.py Fixes ProcessIOTestCase.test_stdin_redirection_with_dwarf for remote Linux targets llvm-svn: 228744
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index a1353bf8f02..2390c04ab35 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -731,7 +731,7 @@ Process::Process(Target &target, Listener &listener, const UnixSignalsSP &unix_s
m_process_input_reader (),
m_stdio_communication ("process.stdio"),
m_stdio_communication_mutex (Mutex::eMutexTypeRecursive),
- m_stdio_disable(true),
+ m_stdin_forward (false),
m_stdout_data (),
m_stderr_data (),
m_profile_data_comm_mutex (Mutex::eMutexTypeRecursive),
@@ -3923,7 +3923,7 @@ Process::Destroy ()
}
m_stdio_communication.StopReadThread();
m_stdio_communication.Disconnect();
- m_stdio_disable = true;
+ m_stdin_forward = false;
if (m_process_input_reader)
{
OpenPOWER on IntegriCloud