aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/python-wrapper.swig
AgeCommit message (Collapse)AuthorFilesLines
2011-08-19Taking care of an issue with using lldb_private types in ↵Enrico Granata1-2/+2
SBCommandInterpreter.cpp ; Making NSString test case work on Snow Leopard ; Removing an unused variable warning llvm-svn: 138105
2011-08-16Changes to Python commands:Enrico Granata1-4/+6
- They now have an SBCommandReturnObject instead of an SBStream as third argument - The class CommandObjectPythonFunction has been merged into CommandObjectCommands.cpp - The command to manage them is now: command script with subcommands add, list, delete, clear command alias is returned to its previous functionality - Python commands are now part of an user dictionary, instead of being seen as aliases llvm-svn: 137785
2011-08-16Python commands:Enrico Granata1-0/+140
It is now possible to use 'command alias --python' to define a command name that actually triggers execution of a Python function (e.g. command alias --python foo foo_impl makes a command named 'foo' that runs Python function 'foo_impl') The Python function foo_impl should have as signature: def foo_impl(debugger, args, stream, dict): where debugger is an object wrapping an LLDB SBDebugger args is the command line arguments, as an unparsed Python string stream is an SBStream that represents the standard output dict is an internal utility parameter and should be left untouched The function should return None on no error, or an error string to describe any problems llvm-svn: 137722
2011-08-11Fixed an issue where LLDB was complaining about the lack of 'update' in a ↵Enrico Granata1-0/+15
synthetic provider, despite it being optional llvm-svn: 137330
2011-07-26adding required utility function to SWIG interfaceEnrico Granata1-0/+43
llvm-svn: 136147
2011-07-26lldb.swig (the SWIG input file) has become too large. Modularize a bit by ↵Johnny Chen1-0/+527
introducing two files to be included from lldb.swig: python-typemaps.swig and python-wrapper.swig. llvm-svn: 136117