Gdb debugger Debug Binary one gcc -g test.c Debugging core Set to generate core file one ulimit -c unlimited one gcc a.out corename Debug the executing program one gdb -g processid Common debugging commands one list one run one next one stept one break Line number/function name one Watch variable name one print &a one info breakpoints one info watchpoints one set (var=value) Ui interface one layout [src asm split] Layout src source code Layout asm assembly code