Posts

Showing posts with the label gdb

What is GDB?

Image
What is GDB? GDB stands for G NU project D e B ugger which helps you to debug your binary object file created in compilation process. GDB allows to you see what is happening in your program which really helps much when program crashes, especially when segmentation fault occurs,😅😅 GDB can do four main things: Start your program, specifying anything that might affect its behavior Make your program stop on specified conditions through breakpoints Examine what has happened, when your program has stopped through checking the values of variables etc Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another Those programs might be executing on the same machine as GDB (native), on another machine (remote), or on a simulator. GDB can run on most popular UNIX and Microsoft Windows variants, as well as on Mac OS X. Languages supported by GDB Ada, Assembly, C, C++, D, Fortran, Go, Objective-C, OpenCL, Modula-2, ...