A debugger built to learn about debuggers
Starting the debugger
bkpt <executable>
Breakpoints are set with
b set <location>
where location
is either:
- an address in hexidecimal form
- a function name
- a line number
b
is aliased tobr
,break
,bkpt
They are unset with
b unset <bkpt number>
The breakpoint number can be found by listing all breakpoints.
List all breakpoints with
b list
list
is aliased tols
To read from a register
r read <register>
To write from a register
r write <register>
r
is aliased toreg
,register
read
is aliased tor
,write
is alised tow
Information about the program can be queried using the info <type>
command
- Series on writing a debugger from scratch in Rust
- Series on writing a linux debugger