summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-07-10 18:04:46 +0000
committerGreg Clayton <gclayton@apple.com>2015-07-10 18:04:46 +0000
commitbf91f712b384caafb12c5350491ff585ca8058ff (patch)
tree77181a3f517874e766abdb409be9cb6371fb4454 /lldb/source/Target
parenta05459691f4cab1aa9f3b8046def62a441e270f3 (diff)
downloadbcm5719-llvm-bf91f712b384caafb12c5350491ff585ca8058ff.tar.gz
bcm5719-llvm-bf91f712b384caafb12c5350491ff585ca8058ff.zip
Don't try to make a pseudo terminal if we are launching in a separate terminal, it causes a deadlock when debugging because we create a PTY and yet it isn't hooked up to anything on the slave side.
llvm-svn: 241919
Diffstat (limited to 'lldb/source/Target')
-rw-r--r--lldb/source/Target/ProcessLaunchInfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Target/ProcessLaunchInfo.cpp b/lldb/source/Target/ProcessLaunchInfo.cpp
index 30c5aee63ca..bd2e1bc4c4a 100644
--- a/lldb/source/Target/ProcessLaunchInfo.cpp
+++ b/lldb/source/Target/ProcessLaunchInfo.cpp
@@ -284,6 +284,13 @@ ProcessLaunchInfo::FinalizeFileActions (Target *target, bool default_to_use_pty)
log->Printf ("ProcessLaunchInfo::%s at least one of stdin/stdout/stderr was not set, evaluating default handling",
__FUNCTION__);
+ if (m_flags.Test(eLaunchFlagLaunchInTTY))
+ {
+ // Do nothing, if we are launching in a remote terminal
+ // no file actions should be done at all.
+ return;
+ }
+
if (m_flags.Test(eLaunchFlagDisableSTDIO))
{
if (log)
OpenPOWER on IntegriCloud