[Lldb-commits] [lldb] [lldb][windows][NFC] expose ProcessLauncherWindows methods (PR #183579)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 6 08:05:25 PST 2026
================
@@ -246,12 +253,13 @@ llvm::ErrorOr<std::vector<HANDLE>> ProcessLauncherWindows::GetInheritedHandles(
if (startupinfoex.StartupInfo.hStdOutput)
inherited_handles.push_back(startupinfoex.StartupInfo.hStdOutput);
- for (size_t i = 0; i < launch_info.GetNumFileActions(); ++i) {
- const FileAction *act = launch_info.GetFileActionAtIndex(i);
- if (act->GetAction() == FileAction::eFileActionDuplicate &&
- act->GetFD() == act->GetActionArgument())
- inherited_handles.push_back(reinterpret_cast<HANDLE>(act->GetFD()));
- }
+ if (launch_info)
----------------
Nerixyz wrote:
Nit: add braces, because the inner `for` is braced too.
https://github.com/llvm/llvm-project/pull/183579
More information about the lldb-commits
mailing list