Skip to content

init

function_lookup = pwndbg.config.add_param('integration-function-lookup', True, 'whether to use integration to look up function type signatures') module-attribute

provider: IntegrationProvider = IntegrationProvider() module-attribute

provider_name = pwndbg.config.add_param('integration-provider', 'none', 'which provider to use for integration features', param_class=pwndbg.lib.config.PARAM_ENUM, enum_sequence=['none', 'binja', 'ida']) module-attribute

smart_enhance = pwndbg.config.add_param('integration-smart-enhance', True, 'whether to use integration to determine if code should be disassembled during enhancing') module-attribute

symbol_lookup = pwndbg.config.add_param('integration-symbol-lookup', True, 'whether to use integration to look up unknown symbols') module-attribute

ConfigurableProvider dataclass

Bases: IntegrationProvider

A wrapper around an IntegrationProvider that skips calling functions if disabled in config.

inner: IntegrationProvider instance-attribute

__init__(inner)

decompile(addr, lines)

get_comment_lines(addr)

get_func_type(addr)

get_stack_var_name(addr)

get_symbol(addr)

get_versions()

is_in_function(addr)

IntegrationProvider

A class representing an integration that provides intelligence external to GDB.

decompile(addr, lines)

Decompiles the code near an address given a line count.

get_comment_lines(addr)

Gets any comments attached to an instruction.

get_func_type(addr)

Gets the type signature of a function, used for argument labeling.

get_stack_var_name(addr)

Gets the name of a stack variable based on only the address of the variable.

get_symbol(addr)

Get a symbol at an address, or an offset from a symbol.

get_versions()

Gets any version strings relevant to the integration, which are used when displaying the version command.

is_in_function(addr)

Checks if integration thinks that an address is in a function, which is used to determine if tel should try to disassemble something.

If uncertain, it's better to default to True than to False.

switch_providers()