GDB cannot be used for programs that compile with errors and it does not help in fixing those errors.īefore you go for installation, check if you already have gdb installed on your Unix system by issuing the following command: Points to NoteĮven though GDB can help you in finding out memory leakage related bugs, but it is not a tool to detect memory leakages. GDB uses a simple command line interface. GDB allows you to run the program up to a certain point, then stop and print out the values of certain variables at that point, or step through the program one line at a time and print out the values of each variable after executing each line. What is the result of a particular expression in a program? What are the values of program variables at a particular point during execution of the program? If an error occurs while executing a function, what line of the program contains the call to that function, and what are the parameters? If a core dump happened, then what statement or expression did the program crash on? GNU Debugger helps you in getting information about the following: GNU Debugger, which is also called gdb, is the most popular debugger for UNIX systems to debug C and C++ programs. A debugger is a program that runs other programs, allowing the user to exercise control over these programs, and to examine variables when problems arise.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |