GDB - Other Useful Commands

From EdWiki

Other Useful Commands

  • backtrace - produces a stack trace of the function calls that lead to a seg fault (should remind you of Java exceptions)
  • where - same as backtrace; you can think of this version as working even when you’re still in the middle of the program
  • finish - runs until the current function is finished
  • delete - deletes a specified breakpoint
  • info breakpoints - shows information about all declared breakpoints