[Lldb-commits] [PATCH] LLDB Python API support on Windows (ported the SWIG wrapper shell scripts to Python)

Greg Clayton gclayton at apple.com
Mon Mar 10 11:20:54 PDT 2014

utilsArgsParse.py should not be needed, you should use either 'optparse' or 'argparse' to be consistent with other python code. They are both fully functional. 'optparse' is more backward compatible with older versions of python.

Other than that, we will need people to verify this works on Linux, FreeBSD and MacOSX. I will verify on MacOSX.


On Mar 6, 2014, at 3:16 AM, Deepak Panickal <deepak2427 at gmail.com> wrote:

> This patch will create 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. 
> We have to work on this issue, by either removing this dependency or working around it.
> Once these issues are dealt with, we would be able to run the Python test suite on Windows.
> http://llvm-reviews.chandlerc.com/D2980
> Files:
>  CMakeLists.txt
>  include/lldb/API/SBHostOS.h
>  include/lldb/Host/windows/win32.h
>  include/lldb/lldb-python.h
>  scripts/CMakeLists.txt
>  scripts/Python/buildSwigPython.py
>  scripts/Python/finish-swig-Python-LLDB.sh
>  scripts/Python/finishSwigPythonLLDB.py
>  scripts/Python/interface/SBHostOS.i
>  scripts/buildSwigWrapperClasses.py
>  scripts/finishSwigWrapperClasses.py
>  scripts/utilsArgsParse.py
>  scripts/utilsDebug.py
>  scripts/utilsOsType.py
>  source/CMakeLists.txt
>  source/Interpreter/ScriptInterpreterPython.cpp
>  source/Symbol/ClangASTType.cpp
>  source/Utility/PseudoTerminal.cpp
> <D2980.1.patch>_______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

More information about the lldb-commits mailing list