Skip to content

next ¤

Stepping until an event occurs

Functions:

  • nextjmp

    Breaks at the next jump instruction

  • nextcall

    Breaks at the next call instruction

  • nextret

    Breaks at next return-like instruction

  • stepret

    Breaks at next return-like instruction by 'stepping' to it

  • nextproginstr
  • stepover

    Sets a breakpoint on the instruction after this one

  • nextsyscall

    Breaks at the next syscall not taking branches.

  • stepsyscall

    Breaks at the next syscall by taking branches.

  • stepuntilasm

Attributes:

stepsyscall_parser module-attribute ¤

stepsyscall_parser = ArgumentParser(
    description="Breaks at the next syscall by taking branches."
)

parser module-attribute ¤

parser = ArgumentParser(description='Breaks on the next matching instruction.')

nextjmp ¤

nextjmp() -> None

Breaks at the next jump instruction

nextcall ¤

nextcall(symbol_regex=None) -> None

Breaks at the next call instruction

nextret ¤

nextret() -> None

Breaks at next return-like instruction

stepret ¤

stepret() -> None

Breaks at next return-like instruction by 'stepping' to it

nextproginstr ¤

nextproginstr() -> None

stepover ¤

stepover(addr=None) -> None

Sets a breakpoint on the instruction after this one

nextsyscall ¤

nextsyscall() -> None

Breaks at the next syscall not taking branches.

stepsyscall ¤

stepsyscall(syscall: str | None = None, condition: str | None = None) -> None

Breaks at the next syscall by taking branches.

Examples:

stepsyscall - Break at next syscall stepsyscall write - Break at next write syscall stepsyscall 1 - Break at syscall number 1 stepsyscall write -c '$rdi==1' - Break at write syscall when fd==1 (stdout) stepsyscall -c '$rax==60' - Break when syscall number is 60 (exit)

stepuntilasm ¤

stepuntilasm(mnemonic, op_str) -> None