[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows with --no-stdio

Dávid Bolvanský via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 12 09:35:32 PDT 2018


xbolva00 updated this revision to Diff 165103.
xbolva00 retitled this revision from "Do not create new terminals when launching process on Windows by default" to "Do not create new terminals when launching process on Windows with --no-stdio".
xbolva00 edited the summary of this revision.

https://reviews.llvm.org/D51966

Files:
  source/Host/windows/ProcessLauncherWindows.cpp


Index: source/Host/windows/ProcessLauncherWindows.cpp
===================================================================
--- source/Host/windows/ProcessLauncherWindows.cpp
+++ source/Host/windows/ProcessLauncherWindows.cpp
@@ -76,6 +76,9 @@
   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())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51966.165103.patch
Type: text/x-patch
Size: 568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180912/a3ec4ff3/attachment.bin>


More information about the lldb-commits mailing list