make
gcc -no-pie test_print.c -o test_print
gcc -no-pie test_add.c -o test_add
# ./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.