lldb-gdbserver should not use unnamed pipes on Windows.

llvm-svn: 236138
This commit is contained in:
Chaoren Lin 2015-04-29 19:01:43 +00:00
parent 9cb88b73c6
commit 4dc65069a1
1 changed files with 4 additions and 0 deletions
lldb/tools/lldb-server

View File

@ -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