Fix 'process launch -i' for remote processes
authorVince Harron <vharron@google.com>
Tue, 10 Feb 2015 21:09:04 +0000 (21:09 +0000)
committerVince Harron <vharron@google.com>
Tue, 10 Feb 2015 21:09:04 +0000 (21:09 +0000)
commitdf3f00f30a83ba0e526ad13097dd4f841f6045a6
tree2df9dea155ccb0d88a601587dfe7037e10b1b344
parentc008539736dea40fc1982a6d6cdd4c8c81129222
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
lldb/include/lldb/Target/Process.h
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Target/Process.cpp
lldb/test/python_api/process/io/TestProcessIO.py