* loops @ 2006-08-25 19:57 Jonathan Shan 2006-08-25 20:04 ` loops Alfred M. Szmidt 2006-08-25 20:05 ` loops Jim Blandy 0 siblings, 2 replies; 3+ messages in thread From: Jonathan Shan @ 2006-08-25 19:57 UTC (permalink / raw) To: gdb Hello all, How do I "skip over" some iterations of a loop? I don't want to press 'continue' 50000 times. Jonathan Shan ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: loops 2006-08-25 19:57 loops Jonathan Shan @ 2006-08-25 20:04 ` Alfred M. Szmidt 2006-08-25 20:05 ` loops Jim Blandy 1 sibling, 0 replies; 3+ messages in thread From: Alfred M. Szmidt @ 2006-08-25 20:04 UTC (permalink / raw) To: Jonathan Shan; +Cc: gdb How do I "skip over" some iterations of a loop? I don't want to press 'continue' 50000 times. Check the GDB manual, (gdb)Continuing and Stepping. You will probobly want to use the `until' command, or just `continue 50000' depending one what you wish to do. Happy hacking. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: loops 2006-08-25 19:57 loops Jonathan Shan 2006-08-25 20:04 ` loops Alfred M. Szmidt @ 2006-08-25 20:05 ` Jim Blandy 1 sibling, 0 replies; 3+ messages in thread From: Jim Blandy @ 2006-08-25 20:05 UTC (permalink / raw) To: Jonathan Shan; +Cc: gdb Jonathan Shan <jonshan@winlab.rutgers.edu> writes: > How do I "skip over" some iterations of a loop? > I don't want to press 'continue' 50000 times. You can set an "ignore count" on a breakpoint. See the below, and search for "ignore". http://sources.redhat.com/gdb/current/onlinedocs/gdb_6.html#SEC38 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-25 20:05 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-08-25 19:57 loops Jonathan Shan 2006-08-25 20:04 ` loops Alfred M. Szmidt 2006-08-25 20:05 ` loops Jim Blandy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox