Skip to content

flags ¤

Functions:

Attributes:

description module-attribute ¤

description = 'Modify the flags register.'

epilog module-attribute ¤

epilog = "Examples:\n  On X86/X64:\n    setflag ZF 1        -- set zero flag\n    setflag CF 0        -- unset carry flag\n\n  On ARM:\n    setflag Z 0         -- unset the Z cpsr/xpsr flag\n\n  To see flags registers:\n    info reg eflags     -- on x86/x64\n    info reg cpsr/xpsr  -- on ARM (specific register may vary)\n\n(This command supports flags registers that are defined for architectures in the pwndbg/regs.py file)\n    "

parser module-attribute ¤

parser = ArgumentParser(
    description=description, epilog=epilog, formatter_class=RawTextHelpFormatter
)

setflag ¤

setflag(flag: str, value: int) -> None