llvm-project/lldb/unittests
Zachary Turner 22c8efcd34 Port native Python-API to 3.x
With this change, liblldb is 95% of the way towards being able
to work under both Python 2.x and Python 3.x.  This should
introduce no functional change for Python 2.x, but for Python
3.x there are some important changes.  Primarily, these are:

1) PyString doesn't exist in Python 3.  Everything is a PyUnicode.
   To account for this, PythonString now stores a PyBytes instead
   of a PyString.  In Python 2, this is equivalent to a PyUnicode,
   and in Python 3, we do a conversion from PyUnicode to PyBytes
   and store the PyBytes.
2) PyInt doesn't exist in Python 3.  Everything is a PyLong.  To
   account for this, PythonInteger stores a PyLong instead of a
   PyInt.  In Python 2.x, this requires doing a conversion to
   PyLong when creating a PythonInteger from a PyInt.  In 3.x,
   there is no PyInt anyway, so we can assume everything is a
   PyLong.
3) PyFile_FromFile doesn't exist in Python 3.  Instead there is a
   PyFile_FromFd.  This is not addressed in this patch because it
   will require quite a large change to plumb fd's all the way
   through the system into the ScriptInterpreter.  This is the only
   remaining piece of the puzzle to get LLDB supporting Python 3.x.

Being able to run the test suite is not addressed in this patch.
After the extension module can compile and you can enter an embedded
3.x interpreter, the test suite will be addressed in a followup.

llvm-svn: 249886
2015-10-09 19:45:41 +00:00
..
Host Fix segmentation fault in lldb_private::Symbols::LocateExecutableSymbolFile() 2015-10-06 10:17:34 +00:00
Interpreter Fix linking of unit tests via CMake on Windows. 2015-03-18 16:56:24 +00:00
ScriptInterpreter Port native Python-API to 3.x 2015-10-09 19:45:41 +00:00
Utility Make UriParser to support [$HOSTNAME] notation. 2015-08-20 23:09:34 +00:00
CMakeLists.txt Port native Python-API to 3.x 2015-10-09 19:45:41 +00:00
gtest_common.h Fix linking of unit tests via CMake on Windows. 2015-03-18 16:56:24 +00:00