diff options
author | Aaron Smith <aaron.smith@microsoft.com> | 2019-01-10 00:46:09 +0000 |
---|---|---|
committer | Aaron Smith <aaron.smith@microsoft.com> | 2019-01-10 00:46:09 +0000 |
commit | e55850be23a09969a3a619c4767d86cd532b1006 (patch) | |
tree | 56a23416bde02de94c18d9a0fcf0af130d74d715 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | |
parent | b236d7e7a915fa1ddf536d069003b5181a354492 (diff) | |
download | bcm5719-llvm-e55850be23a09969a3a619c4767d86cd532b1006.tar.gz bcm5719-llvm-e55850be23a09969a3a619c4767d86cd532b1006.zip |
[lldb-server] Add unnamed pipe support to PipeWindows
Summary:
This adds unnamed pipe support in PipeWindows to support communication between a debug server and child process.
Modify PipeWindows::CreateNew to support the creation of an unnamed pipe.
Rename the previous method that created a named pipe to PipeWindows::CreateNewNamed.
Reviewers: zturner, llvm-commits
Reviewed By: zturner
Subscribers: Hui, labath, lldb-commits
Differential Revision: https://reviews.llvm.org/D56234
llvm-svn: 350784
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index b630fae87c3..72c1314a7c9 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -1074,9 +1074,9 @@ Status GDBRemoteCommunication::StartDebugserverProcess( __FUNCTION__, error.AsCString()); return error; } - int write_fd = socket_pipe.GetWriteFileDescriptor(); + pipe_t write = socket_pipe.GetWritePipe(); debugserver_args.AppendArgument(llvm::StringRef("--pipe")); - debugserver_args.AppendArgument(llvm::to_string(write_fd)); + debugserver_args.AppendArgument(llvm::to_string(write)); launch_info.AppendCloseFileAction(socket_pipe.GetReadFileDescriptor()); #endif } else { |