[Lldb-commits] [lldb] r236138 - lldb-gdbserver should not use unnamed pipes on Windows.
Chaoren Lin
chaorenl at google.com
Wed Apr 29 12:01:43 PDT 2015
Author: chaoren
Date: Wed Apr 29 14:01:43 2015
New Revision: 236138
URL: http://llvm.org/viewvc/llvm-project?rev=236138&view=rev
Log:
lldb-gdbserver should not use unnamed pipes on Windows.
Modified:
lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp
Modified: lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp?rev=236138&r1=236137&r2=236138&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp (original)
+++ lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp Wed Apr 29 14:01:43 2015
@@ -344,8 +344,12 @@ writePortToPipe(const char *const named_
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
More information about the lldb-commits
mailing list