summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/windows/ProcessLauncherWindows.cpp
diff options
context:
space:
mode:
authorDavid Bolvansky <david.bolvansky@gmail.com>2018-09-12 19:50:45 +0000
committerDavid Bolvansky <david.bolvansky@gmail.com>2018-09-12 19:50:45 +0000
commitd75a8fff7f6f9a59f2241dfb01a598d4fb1c12eb (patch)
tree7207e98f97b5ba9136397f45c12d398e307993ba /lldb/source/Host/windows/ProcessLauncherWindows.cpp
parent91c668a2765c7858e110aa9179f4d0a22aa86d3f (diff)
downloadbcm5719-llvm-d75a8fff7f6f9a59f2241dfb01a598d4fb1c12eb.tar.gz
bcm5719-llvm-d75a8fff7f6f9a59f2241dfb01a598d4fb1c12eb.zip
Do not create new terminals when launching process on Windows with --no-stdio
Summary: Partially fixes PR38222 Reviewers: teemperor, zturner, stella.stamenova Reviewed By: zturner, stella.stamenova Subscribers: JDevlieghere, clayborg, labath, abidh, lldb-commits Differential Revision: https://reviews.llvm.org/D51966 llvm-svn: 342075
Diffstat (limited to 'lldb/source/Host/windows/ProcessLauncherWindows.cpp')
-rw-r--r--lldb/source/Host/windows/ProcessLauncherWindows.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Host/windows/ProcessLauncherWindows.cpp b/lldb/source/Host/windows/ProcessLauncherWindows.cpp
index 553dd9d286d..a186c7177fd 100644
--- a/lldb/source/Host/windows/ProcessLauncherWindows.cpp
+++ b/lldb/source/Host/windows/ProcessLauncherWindows.cpp
@@ -76,6 +76,9 @@ ProcessLauncherWindows::LaunchProcess(const ProcessLaunchInfo &launch_info,
if (launch_info.GetFlags().Test(eLaunchFlagDebug))
flags |= DEBUG_ONLY_THIS_PROCESS;
+ if (launch_info.GetFlags().Test(eLaunchFlagDisableSTDIO))
+ flags &= ~CREATE_NEW_CONSOLE;
+
LPVOID env_block = nullptr;
::CreateEnvironmentBuffer(launch_info.GetEnvironment(), environment);
if (!environment.empty())
OpenPOWER on IntegriCloud