ParsedCommand#

class lldb.plugins.parsed_cmd.ParsedCommand(debugger, unused)#

Methods Summary

__call__(debugger, args_array, exe_ctx, result)

This is the command callback.

do_register_cmd(cls, debugger, module_name)

Add any commands contained in this module to LLDB

get_args_definition()

get_flags()

get_options_definition()

get_parser()

Returns the option value parser for this command.

option_parsing_started()

set_option_value(exe_ctx, opt_name, opt_value)

setup_command_definition()

This will be called when your command is added to the command interpreter.

Methods Documentation

abstract __call__(debugger, args_array, exe_ctx, result)#

This is the command callback. The option values are provided by the β€˜dest’ properties on the parser.

args_array: This is the list of arguments provided. exe_ctx: Gives the SBExecutionContext on which the

command should operate.

result: Any results of the command should be

written into this SBCommandReturnObject.

static do_register_cmd(cls, debugger, module_name)#

Add any commands contained in this module to LLDB

get_args_definition()#
get_flags()#
get_options_definition()#
get_parser()#

Returns the option value parser for this command. When defining the command, use the parser to add argument and option definitions to the command. When you are in the command callback, the parser gives you access to the options passes to this invocation

option_parsing_started()#
set_option_value(exe_ctx, opt_name, opt_value)#
abstract setup_command_definition()#

This will be called when your command is added to the command interpreter. Here is where you add your options and argument definitions for the command.