diff options
author | David Bolvansky <david.bolvansky@gmail.com> | 2018-09-12 19:50:45 +0000 |
---|---|---|
committer | David Bolvansky <david.bolvansky@gmail.com> | 2018-09-12 19:50:45 +0000 |
commit | d75a8fff7f6f9a59f2241dfb01a598d4fb1c12eb (patch) | |
tree | 7207e98f97b5ba9136397f45c12d398e307993ba /lldb/source/Host/windows/ProcessLauncherWindows.cpp | |
parent | 91c668a2765c7858e110aa9179f4d0a22aa86d3f (diff) | |
download | bcm5719-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.cpp | 3 |
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()) |