From 9b35cf52d2a88cda5167c9638696adce5b152720 Mon Sep 17 00:00:00 2001 From: Deepak Panickal Date: Tue, 1 Jul 2014 17:57:19 +0000 Subject: This creates a valid Python API for Windows, pending some issues. The changes included are - - Ported the SWIG wrapper shell scripts to Python so that they would work on Windows too along with other platforms - Updated CMake handling to fix SWIG errors and manage sym-linking on Windows to liblldb.dll - More build fixes for Windows The pending issues are that two Python modules, termios and pexpect are not available on Windows. These are currently required for the Python command interpreter to be used from within LLDB. llvm-svn: 212111 --- lldb/source/Interpreter/ScriptInterpreterPython.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp') diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index f7e9309ee6d6..ef0d71b5c6fd 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -589,7 +589,12 @@ ScriptInterpreterPython::ExecuteOneLine (const char *command, CommandReturnObjec input_file_sp = debugger.GetInputFile(); // Set output to a temporary file so we can forward the results on to the result object +#ifdef _MSC_VER + // pipe is not supported on windows so default to a fail condition + int err = 1; +#else int err = pipe(pipe_fds); +#endif if (err == 0) { std::unique_ptr conn_ap(new ConnectionFileDescriptor(pipe_fds[0], true)); -- cgit v1.2.3