Nearpc
c = ColorConfig('nearpc', [ColorParamSpec('symbol', 'normal', 'color for nearpc command (symbol)'), ColorParamSpec('address', 'normal', 'color for nearpc command (address)'), ColorParamSpec('prefix', 'none', 'color for nearpc command (prefix marker)'), ColorParamSpec('syscall-name', 'red', 'color for nearpc command (resolved syscall name)'), ColorParamSpec('argument', 'bold', 'color for nearpc command (target argument)'), ColorParamSpec('integration-comments', 'bold', 'color for nearpc command (integration comments)'), ColorParamSpec('branch-marker', 'normal', 'color for nearpc command (branch marker line)')])
module-attribute
¶
nearpc_branch_marker = pwndbg.color.theme.add_param('nearpc-branch-marker', ' ↓', 'branch marker line for nearpc command')
module-attribute
¶
nearpc_branch_marker_contiguous = pwndbg.color.theme.add_param('nearpc-branch-marker-contiguous', ' ', 'contiguous branch marker line for nearpc command')
module-attribute
¶
nearpc_lines = pwndbg.config.add_param('nearpc-lines', 10, 'number of additional lines to print for the nearpc command')
module-attribute
¶
opcode_separator_bytes = pwndbg.config.add_param('nearpc-opcode-separator-bytes', 1, 'number of spaces between opcode bytes', param_class=pwndbg.lib.config.PARAM_ZUINTEGER)
module-attribute
¶
show_args = pwndbg.config.add_param('nearpc-show-args', True, 'whether to show call arguments below instruction')
module-attribute
¶
show_comments = pwndbg.config.add_param('nearpc-integration-comments', True, 'whether to show comments from integration provider')
module-attribute
¶
show_opcode_bytes = pwndbg.config.add_param('nearpc-num-opcode-bytes', 0, 'number of opcode bytes to print for each instruction', param_class=pwndbg.lib.config.PARAM_ZUINTEGER)
module-attribute
¶
ljust_padding(lst)
¶
nearpc(pc=None, lines=None, emulate=False, repeat=False, use_cache=False, linear=False)
¶
Disassemble near a specified address.
The linear
argument specifies if we should disassemble linearly in memory, or take jumps into account