forked from OSchip/llvm-project
lldb-gdbserver should not use unnamed pipes on Windows.
llvm-svn: 236138
This commit is contained in:
parent
9cb88b73c6
commit
4dc65069a1
lldb/tools/lldb-server
|
@ -344,8 +344,12 @@ writePortToPipe(const char *const named_pipe_path, const uint16_t port)
|
|||
Error
|
||||
writePortToPipe(int unnamed_pipe_fd, const uint16_t port)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
return Error("Unnamed pipes are not supported on Windows.");
|
||||
#else
|
||||
Pipe port_pipe{Pipe::kInvalidDescriptor, unnamed_pipe_fd};
|
||||
return WritePortToPipe(port_pipe, port);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue