llvm-project/lldb
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
..
docs Incorporate suggestions from Jim, add "USING LLDB" and "FILES" sections. 2012-06-08 23:49:32 +00:00
examples Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
include Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
lib Patch by Matt, to get lldb to build with the updated llvm+clang versions (via Makefiles). 2012-09-26 16:27:06 +00:00
lldb.xcodeproj Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
lldb.xcworkspace I accidentally committed some changes to the 2011-12-21 21:30:33 +00:00
resources Bump to lldb-168, debugserver-193. 2012-09-20 06:42:30 +00:00
scripts Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
source Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
test Added support for the DebugClang configuration to the 2012-09-26 21:16:15 +00:00
tools Fix the extra space char being emitted in this message when breakpoints resolve - 2012-09-28 01:50:47 +00:00
utils Minor cleanup. 2012-03-05 18:25:29 +00:00
www Add examples of using the kdp-remote and gdb-remote commands to connect to 2012-09-26 22:42:25 +00:00
.gitignore Remove "llvm" from list of things to ignore. This results in the 2012-03-03 06:43:59 +00:00
INSTALL.txt You'll need to be running Mac OS X to get lldb to build right now. 2010-06-09 07:29:26 +00:00
LICENSE.TXT test commit 2010-06-09 03:55:24 +00:00
Makefile Don't force libc++ and c++11 on everyone. 2012-09-14 17:09:06 +00:00