Created
October 5, 2011 08:39
-
-
Save grrussel/1263941 to your computer and use it in GitHub Desktop.
GDB "poor mans loop"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://agateau.wordpress.com/2008/04/17/gdb-trick-the-poor-man-loop/ | |
(gdb) set $pos=0 | |
(gdb) print array[$pos++] | |
content of array[0] | |
(gdb) | |
content of array[1] | |
(gdb) | |
content of array[2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment