Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 521 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 521 Bytes

Small debugger with ptrace

How to build

make

How to execute

Prepare executable ELF files to be debugged

print string

gcc -no-pie test_print.c -o test_print

add

gcc -no-pie test_add.c -o test_add

Run debugger

# ./debugger <ELF executable> <symbol name>
./debugger test_print print_string

./debugger test_add add

At every breakpoint (i.e., given symbol name), the debugger displays the current register state. To proceed, press the Enter key.