GDB TutorialA Walkthrough with ExamplesCMSC 212 - Spring 2009Last modified March 22, 2009GDB TutorialWhat is gdb?“GNU Debugger”A debugger for several languages, including C and C++It allows you to inspect what the program is doing at a certainpoint during execution.Errors like segmentation faults may be easier to find with thehelp of gdb.http://sourceware.org/gdb/current/onlinedocs/gdb toc.html -online manualGDB TutorialAdditional step when compiling programNormally, you would compile a program like:gcc [flags] -o