Use this sample program as a starting point for learning the basic GDB commands.
gdb-demo-simple.cpp
rung.sh