What is GDB and how it works?

What is GDB?

GDB, the GNU Debugger, allows you to see what’s going on ‘inside’ another program while it executes. Or you can say that, it back traces what program was doing at the moment it crashed. GDB is helpful in many ways. For example,¬†you may have seen many open source softwares and it is difficult for another programmer to understand the code. GDB is the best option to understand the flow or code of a program. It can also be helpful in many other cases. For example you have developed a software, it is not showing any error but the output is not as expected. Continue reading