| An Introduction to GCC - for the GNU compilers gcc and g++ by Brian J. Gough, foreword by Richard M. Stallman Paperback (6"x9"), 144 pages ISBN 0954161793 RRP £12.95 ($19.95) "An excellent introduction... fills a much-needed niche in the marketplace" --- Association of C and C++ Users book review (Issue 16-4, August 2004) Get a printed copy>>> |
5.4 Stepping through the program
To move forward and execute the line displayed above, use the command
step:
(gdb) step 7 return foo (p);
After executing line 6, the debugger displays the next line to be
executed. The pointer p will now have been set to zero (null):
(gdb) print p $1 = (int *) 0x0
The command step will follow the execution of the program
interactively through any functions that are called in the current
line. If you want to move forward without tracing these calls,
use the command next instead.
| ISBN 0954161793 | An Introduction to GCC - for the GNU compilers gcc and g++ | See the print edition |