[prev] 9 [next]

GDB Execution Commands

break [FUNC|LINE] - set break-point
  • stop execution and return control to gdb
    on entry to function FUNC or on reaching line LINE
next - single step (over functions)
  • execute next statement
    if statement is function call, execute whole function
step - single step (into functions)
  • execute next statement
    if statement is function call, go to first statement in function body
For more details see gdb's on-line help.