Skip to main content

Module handler

Module handler 

Source
Expand description

ptrace-based command handler functions for the debugger REPL.

Functions§

do_ambiguous
Handler for ambiguous commands (user input matches multiple commands).
do_backtrace
Handler that prints a backtrace for the traced process.
do_breakpoint
Set a permanent breakpoint at the given address or the previous RIP.
do_continue
Continue execution of the traced process.
do_delete
Delete a breakpoint by id.
do_examine
Examine memory at a given address and format the bytes.
do_help
Print help text for available commands.
do_info_breakpoints
Print information about currently set breakpoints.
do_info_memory
Print the memory map (/proc/PID/maps) of the traced process.
do_info_registers
Print the current register state of the traced process.
do_invalid_arguments
Handler for invalid argument errors.
do_layout_asm
Switch the display layout to assembly mode.
do_layout_src
Switch the display layout to source mode (when available).
do_list
Re-print the last printed source or assembly chunk.
do_next
Step over the next instruction (implement stepping semantics).
do_nothing
A no-op handler that does nothing and stalls execution.
do_quit
Quit the debugger and exit the tracer loop.
do_step
Step a single instruction (single-step execution).
do_tbreakpoint
Set a temporary breakpoint at the given address or previous RIP.
do_unknown
Handler for completely unknown commands.

Type Aliases§

CommandFn
Type of a command handler function.