I have made an application in which there is a file main.c which uses a function from the master.c file. I would like to debug my application for all functions defined in the master.c file by using gdb tool. Is this possible and if so how?
I have made an application in which there is a file main.c which uses
Share
You must compile your program using
-gflag.Then you start
gdb your_programand set break points:break master.c:37that will set a break point on master.c, line #37 or you could set breaks at functions:break foo().Then start your program by
runand continue with the debugging process,inspect,continue,watch,display…http://www.gnu.org/software/gdb/
http://www.gnu.org/software/gdb/documentation/
http://www.cs.cmu.edu/~gilpin/tutorial/
Google for more documentation on using gdb.
Of course there is:
Debug a running program with gdb