llvm-project/lldb/source
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
..
API Fix handling of LLDB_VERS_GENERATED_FILE. 2015-10-09 03:40:55 +00:00
Breakpoint [LLDB] Fix display of value of a vector variables in watchpoint operations 2015-10-09 15:13:20 +00:00
Commands Decide on the expression language inside UserExpression 2015-10-07 22:01:12 +00:00
Core Fix regression caused by r249769 2015-10-09 11:01:56 +00:00
DataFormatters Route the preferred-display-language mechanism to the ValueObjectPrinter and actually fill in a few gaps for dynamic and synthetic values to be able to adopt this in useful ways 2015-10-07 02:36:35 +00:00
Expression Decide on the expression language inside UserExpression 2015-10-07 22:01:12 +00:00
Host Re-commit the (fixed) changes from r248985 which were reverted by Pavel 2015-10-08 21:48:35 +00:00
Initialization TypeSystem is now a plugin interface and removed any "ClangASTContext &Class::GetClangASTContext()" functions. 2015-09-17 22:23:34 +00:00
Interpreter Added support for enumerating the languages that actually support TypeSystems 2015-10-08 23:07:53 +00:00
Plugins Port native Python-API to 3.x 2015-10-09 19:45:41 +00:00
Symbol Fix a crash, an UB and add some assert to dwo symbol file handling 2015-10-09 12:43:08 +00:00
Target Don't blindly use C for eLanguageTypeUnknown when getting a scratch TypeSystem. 2015-10-09 18:01:10 +00:00
Utility Add support for .ARM.exidx unwind information 2015-09-30 13:50:14 +00:00
CMakeLists.txt Fix handling of LLDB_VERS_GENERATED_FILE. 2015-10-09 03:40:55 +00:00
Makefile [Makefiles] Align library names with CMake build 2015-07-14 20:25:19 +00:00
lldb.cpp Move LLDB initialization/shutdown to Initialization. 2015-03-19 22:00:21 +00:00