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
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