b main - Puts a breakpoint at the beginning of the programb - Puts a breakpoint at the current lineb N - Puts a breakpoint at line Nb +N - Puts a breakpoint N lines down from the current lineb fn - Puts a breakpoint at the beginning of function "fn"d N - Deletes breakpoint number Ninfo break - list breakpointsr - Runs the program until a breakpoint or errorc - Continues running the program until the next breakpoint or errorf - Runs until the current function is finisheds - Runs the next line of the programs N - Runs the next N lines of the programn - Like s, but it does not step into functionsu N - Runs until you get N lines in front of the current linep var - Prints the current value of the variable "var"bt - Prints a stack traceu - Goes up a level in the stackd - Goes down a level in the stackq - Quits gdb
GDB最常用的命令
GDB 最常用的命令
关注
打赏