lldb-gdbserver should not use unnamed pipes on Windows.
authorChaoren Lin <chaorenl@google.com>
Wed, 29 Apr 2015 19:01:43 +0000 (19:01 +0000)
committerChaoren Lin <chaorenl@google.com>
Wed, 29 Apr 2015 19:01:43 +0000 (19:01 +0000)
llvm-svn: 236138

lldb/tools/lldb-server/lldb-gdbserver.cpp

index d0845bc..0cf3ab1 100644 (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