Skip to main content

GNU Debugger (gdb) Basics

I have been playing with C++ and surely run into compilations that result in segmentation faults. Instead of blindly searching for the source of these errors, I decided to learn a little more about the GNU debugger (gdb). Note that you would need to find the proper compilation flag to be able to debug your code with a certain debugger. For example, I added '-ggdb' flag to g++ in order to debug my code with gdb.

... Was gonna write a tutorial myself, but I will instead just give relevant links to some useful pages.

Debugging Under Unix: gdb Tutorial


The DDD debugger is supposed to be good. Will report on it soon.

Comments