Gdb debugger

1. misclassification program : compile-time errors, syntax errors, runtime errors, memory errors, logic errors
2. gdb functions : run the program, set breakpoints, view the value of variables
3. For example there is a hello.c file command is executed
GCC -g hello.c -o Hello
GDB Hello
4. GDB a simple command
(A)
-tui: the graphical interface of the
layout asm assembler display
layout src source display
layout Split
(B)
rUN run command
(C)
BREAK + The line number
break + function names
break + line number if conditions
info break to see breakpoint information
delete + break point number
enable + breakpoint number
disable + breakpoint number
single step:
the sTEP subroutine can enter the
next can not enter the subroutine

Published 12 original articles · won praise 7 · views 3054

Guess you like

Origin blog.csdn.net/kksdw/article/details/104926960