teak-llvm/lldb/scripts/Python
Enrico Granata 21dfcd9d41 Implementing plugins that provide commands.
This checkin adds the capability for LLDB to load plugins from external dylibs that can provide new commands
It exports an SBCommand class from the public API layer, and a new SBCommandPluginInterface

There is a minimal load-only plugin manager built into the debugger, which can be accessed via Debugger::LoadPlugin.

Plugins are loaded from two locations at debugger startup (LLDB.framework/Resources/PlugIns and ~/Library/Application Support/LLDB/PlugIns) and more can be (re)loaded via the "plugin load" command

For an example of how to make a plugin, refer to the fooplugin.cpp file in examples/plugins/commands

Caveats:
	Currently, the new API objects and features are not exposed via Python.
	The new commands can only be "parsed" (i.e. not raw) and get their command line via a char** parameter (we do not expose our internal Args object)
	There is no unloading feature, which can potentially lead to leaks if you overwrite the commands by reloading the same or different plugins
	There is no API exposed for option parsing, which means you may need to use getopt or roll-your-own

llvm-svn: 164865
2012-09-28 23:57:51 +00:00
..
interface Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
build-swig-Python.sh Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
edit-swig-python-wrapper-file.py Fix remaining Python issues leftover from my previous patch. 2011-06-01 02:33:12 +00:00
finish-swig-Python-LLDB.sh Patch from Dan Malea to get the Bourne shells scripts to run cleanly on Ubuntu. 2012-09-27 21:26:57 +00:00
modify-python-lldb.py Export the APIs submitted by Dawn to the Python bindings. Add a simple test case for the SBModule.compile_unit_iter() API. 2012-03-16 21:55:42 +00:00
python-extensions.swig Added SBDebugger's log callbacks to Python-land 2012-08-25 00:29:07 +00:00
python-typemaps.swig Simplify the typecheck code. 2012-08-28 13:49:02 +00:00
python-wrapper.swig Fixing a potential control may reach end of non-void function issue 2012-08-27 18:30:45 +00:00