We have written a
gdb tutorial that goes through a few examples of using
gdb to debug buggy C programs. The tutorial also contains a handy list of useful
gdb commands. For ease, we provide it in the form of a pdf.
You can find the tutorial here.