DEV Community

Cover image for gdb debugger
Anne Quinkenstein
Anne Quinkenstein

Posted on • Edited on

gdb debugger

runs on many Unix-like systems and works for many programming languages, including Ada, Assembly, C, C++, D, Fortran, Haskell, Go, Objective-C, OpenCL C, Modula-2, Pascal, Rust,...

strings programm

shows all strings of a programm

./check $(python3 -c 'print("a" * 200)')

gdb debugger

gdb programm (start programm in same folder)
(gdb) disas function
(gdb) b* 0x401402 (set breakpoint)
(gdb) r xxxxxxxx (start Programm with parameter (eg pw))
(gdb) i r (info register) show registger
eg PW: for every letter show:
(gdb) set $al = $dl
(gdb) c

Top comments (0)