aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-11-17 22:14:31 +0000
committerGreg Clayton <gclayton@apple.com>2011-11-17 22:14:31 +0000
commitee95ed5055ca307a041597f1ba300ae120a76c72 (patch)
tree2f743a07e41763d873921483521bc6b3df8866db /lldb/source/Commands/CommandObjectProcess.cpp
parent755b2055197d2bfa4c4952ac6d292848282f6bf2 (diff)
downloadllvm-ee95ed5055ca307a041597f1ba300ae120a76c72.zip
llvm-ee95ed5055ca307a041597f1ba300ae120a76c72.tar.gz
llvm-ee95ed5055ca307a041597f1ba300ae120a76c72.tar.bz2
Use a pseudoterminal for local processes if no STDIO redirection or other
file actions have been specified. llvm-svn: 144922
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index d618c04..4e9d499 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -236,7 +236,10 @@ public:
if (environment.GetArgumentCount() > 0)
m_options.launch_info.GetEnvironmentEntries ().AppendArguments (environment);
- m_options.launch_info.FinalizeFileActions (target);
+ // Finalize the file actions, and if none were given, default to opening
+ // up a pseudo terminal
+ const bool default_to_use_pty = true;
+ m_options.launch_info.FinalizeFileActions (target, default_to_use_pty);
if (state == eStateConnected)
{