summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
authorDeepak Panickal <deepak@codeplay.com>2014-07-01 17:57:19 +0000
committerDeepak Panickal <deepak@codeplay.com>2014-07-01 17:57:19 +0000
commit9b35cf52d2a88cda5167c9638696adce5b152720 (patch)
tree256f0679d9a9f5e095704d076755cef8d47c1e45 /lldb/source/Interpreter
parent91f380a499f54a4df63da137b50af3a6700d24d1 (diff)
downloadbcm5719-llvm-9b35cf52d2a88cda5167c9638696adce5b152720.tar.gz
bcm5719-llvm-9b35cf52d2a88cda5167c9638696adce5b152720.zip
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
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreterPython.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
index f7e9309ee6d..ef0d71b5c6f 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<ConnectionFileDescriptor> conn_ap(new ConnectionFileDescriptor(pipe_fds[0], true));
OpenPOWER on IntegriCloud