Debugging C and C++ programs with gdb (and ddd)
Introduction to gdb and ddd The purpose of a debugger is to allow you to see what is going on inside your C program while it runs. In addition, you can use gdb to see what your program was doing at the moment it crashed. Here are some of the usful actions...