Skip to content

Instantly share code, notes, and snippets.

@grrussel
Created October 5, 2011 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grrussel/1263941 to your computer and use it in GitHub Desktop.
Save grrussel/1263941 to your computer and use it in GitHub Desktop.
GDB "poor mans loop"
// 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