Added a new decorator function in the "lldb" module that can register a command automatically. We have just a few kinks to work out for the Xcode workflow and we will be ready to switch over to using this. To use this, you can decorate your python function as:

@lldb.command("new_command", "Documentation string for new_command...")
def new_command(debugger, command, result, dict):
    ....
    
No more need to register your command in the __lldb_init_module function!





git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184274 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed