teak-llvm/lldb/source/Plugins/ScriptInterpreter/Python
Vadim Chugunov 74587a0e48 Fix double import of _lldb module.
Fix llvm.org/pr39054:
- Register _lldb as a built-in module during initialization of script interpreter,
- Reverse the order of imports in __init__.py: first try to import by absolute name, which will find the built-in module in the context of lldb (and other hosts that embed liblldb), then try relative import, in case the module is being imported from Python interpreter.

This works for SWIG>=3.0.11; before that, SWIG did not support custom module import code.

Differential revision: https://reviews.llvm.org/D52404

llvm-svn: 344474
2018-10-14 07:24:56 +00:00
..
CMakeLists.txt ScriptInterpreterPython cleanup 2018-06-21 14:09:15 +00:00
lldb-python.h Partially revert r335236 2018-06-21 17:36:32 +00:00
PythonDataObjects.cpp Fix PythonString::GetString for >=python-3.7 2018-07-25 11:35:28 +00:00
PythonDataObjects.h Partially revert r335236 2018-06-21 17:36:32 +00:00
PythonExceptionState.cpp Partially revert r335236 2018-06-21 17:36:32 +00:00
PythonExceptionState.h Partially revert r335236 2018-06-21 17:36:32 +00:00
ScriptInterpreterPython.cpp Fix double import of _lldb module. 2018-10-14 07:24:56 +00:00
ScriptInterpreterPython.h Add a "scripted" breakpoint type to lldb. 2018-09-13 21:35:32 +00:00