Run program in gdb
To see more commands, the help command is
help
or look at the extra information pointers near the beginning of these slides.