Writing a Tiny Debugger with ptrace

A small C debugger that single-steps a program, rewrites its registers and memory, and changes what it does. Then figuring out why real debuggers don’t work like that — a breakpoint is literally one byte, 0xCC.

July 23, 2023 · 9 min · phinguin