[Lldb-commits] [lldb] [lldb] Inherit DuplicateFileAction(HANDLE, HANDLE) handles on windows (PR #137978)
Dmitry Vasilyev via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 30 12:51:25 PDT 2025
================
@@ -274,10 +274,8 @@ static Status spawn_process(const char *progname, const FileSpec &prog,
self_args.AppendArgument(llvm::StringRef("platform"));
self_args.AppendArgument(llvm::StringRef("--child-platform-fd"));
self_args.AppendArgument(llvm::to_string(shared_socket.GetSendableFD()));
-#ifndef _WIN32
launch_info.AppendDuplicateFileAction((int)shared_socket.GetSendableFD(),
(int)shared_socket.GetSendableFD());
----------------
slydiman wrote:
https://learn.microsoft.com/en-us/windows/win32/winprog64/interprocess-communication
> It is safe to truncate the handle (when passing it from 64-bit to 32-bit) or sign-extend the handle (when passing it from 32-bit to 64-bit)
https://github.com/llvm/llvm-project/pull/137978
More information about the lldb-commits
mailing list