The above walkthrough hits on the major things you can do with gdb in command-line mode:
See program listings
See the stack trace and move around in the stack looking at the variables in various functions
Set and disable breakpoints
Change execution flow
What follows is a survey of different commands that could be useful. This is still a very small subset of what gdb is capable of.