Skip to content

disasm ¤

Functions:

Attributes:

c module-attribute ¤

c = ColorConfig(
    "disasm",
    [
        ColorParamSpec(
            "branch", "bold", "color for disasm (branch/call instruction)"
        )
    ],
)

config_branch_on module-attribute ¤

config_branch_on = add_param(
    "disasm-branch-on", "✔", "marker for branches that WILL be taken"
)

config_branch_off module-attribute ¤

config_branch_off = add_param(
    "disasm-branch-off", "✘", "marker for branches that will NOT be taken"
)

MIN_SPACING module-attribute ¤

MIN_SPACING = 5

WHITESPACE_LIMIT module-attribute ¤

WHITESPACE_LIMIT = 20

one_instruction ¤

one_instruction(ins: PwndbgInstruction, linear: bool) -> str

Returns colorized instructions assembly and operands, and checkmark if branch is taken

Example: ✔ je _IO_file_xsputn+341. Inline symbol replacements made. No annotation or branch targets shown.

instructions_and_padding ¤

instructions_and_padding(
    instructions: list[PwndbgInstruction], linear: bool
) -> list[str]