Saturday, September 23, 2017

gdb tutorial

In the prev tutorial we have seen that how to compile and run some files which was written in C and C++ G++ introduction
Now we will se how to see the debugging steps

first of all remember to add -g option to each of the commands to attach debugging information into the object files and the executable file

after that run gdb by typing
 gdb reciprocal

then run the program by typing
run 7
 we can now see the steps byb typing next

Copy writes  Advanced Linux Programming by Mark Mitchell, Jeffrey Oldham,and Alex Samuel

No comments:

Post a Comment

Populate ListView from JSON using AsyncTask via singleton class.

Populate ListView from JSON using AsyncTask via singleton class. In this tutorial we will try to make a simple app(not a real life...