Convert the ScriptInterpreter system to a plugin-based one.
authorZachary Turner <zturner@google.com>
Thu, 30 Jul 2015 20:28:07 +0000 (20:28 +0000)
committerZachary Turner <zturner@google.com>
Thu, 30 Jul 2015 20:28:07 +0000 (20:28 +0000)
commit2c1f46dcc609a1bf61ab979eebdd72f81823ff74
tree9aea77c865bbaa3ec81fd85ca66913360dc6155b
parent13ac40ea6ef9621838068a70cbef86d544ee9700
Convert the ScriptInterpreter system to a plugin-based one.

Previously embedded interpreters were handled as ad-hoc source
files compiled into source/Interpreter.  This made it hard to
disable a specific interpreter, or to add support for other
interpreters and allow the developer to choose which interpreter(s)
were enabled for a particular build.

This patch converts script interpreters over to a plugin-based system.
Script interpreters now live in source/Plugins/ScriptInterpreter, and
the canonical LLDB interpreter, ScriptInterpreterPython, is moved there
as well.

Any new code interfacing with the Python C API must live in this location
from here on out.  Additionally, generic code should never need to
reference or make assumptions about the presence of a specific interpreter
going forward.

Differential Revision: http://reviews.llvm.org/D11431
Reviewed By: Greg Clayton

llvm-svn: 243681
33 files changed:
lldb/include/lldb/API/SystemInitializerFull.h
lldb/include/lldb/Core/PluginManager.h
lldb/include/lldb/Interpreter/CommandInterpreter.h
lldb/include/lldb/Interpreter/ScriptInterpreter.h
lldb/include/lldb/Interpreter/ScriptInterpreterNone.h [deleted file]
lldb/include/lldb/Utility/PythonPointer.h [deleted file]
lldb/include/lldb/lldb-forward.h
lldb/include/lldb/lldb-private-interfaces.h
lldb/include/lldb/lldb-python.h [deleted file]
lldb/lldb.xcodeproj/project.pbxproj
lldb/source/API/CMakeLists.txt
lldb/source/API/SBCommandInterpreter.cpp
lldb/source/API/SystemInitializerFull.cpp
lldb/source/Core/PluginManager.cpp
lldb/source/Host/macosx/HostInfoMacOSX.mm
lldb/source/Host/posix/HostInfoPosix.cpp
lldb/source/Initialization/SystemInitializerCommon.cpp
lldb/source/Interpreter/CMakeLists.txt
lldb/source/Interpreter/CommandInterpreter.cpp
lldb/source/Interpreter/ScriptInterpreterNone.cpp [deleted file]
lldb/source/Plugins/CMakeLists.txt
lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
lldb/source/Plugins/ScriptInterpreter/CMakeLists.txt [new file with mode: 0644]
lldb/source/Plugins/ScriptInterpreter/None/CMakeLists.txt [new file with mode: 0644]
lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp [new file with mode: 0644]
lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.h [new file with mode: 0644]
lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt [new file with mode: 0644]
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp [moved from lldb/source/Interpreter/PythonDataObjects.cpp with 97% similarity]
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h [moved from lldb/include/lldb/Interpreter/PythonDataObjects.h with 96% similarity]
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp [moved from lldb/source/Interpreter/ScriptInterpreterPython.cpp with 98% similarity]
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h [moved from lldb/include/lldb/Interpreter/ScriptInterpreterPython.h with 95% similarity]
lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h [new file with mode: 0644]
lldb/unittests/CMakeLists.txt