title: Is there a gdb command to finish a loop construct?
body: <p>In gdb, I have the <code>finish</code> command to easily finish execution of a function frame, often when walking through code in the debugger, after looking at a few iterations of a loop, I'd like to finish the loop and continue walking after it.  Presently, I do this by setting a break point on the first line after the loop and <code>continue</code>, however, it would be really handy if there was a simple gdb command to have the same effect of this but not require a break point to be set and later cleared.</p>
  
  <p>Is there anyway in gdb to finish execution of the current loop being executed?</p>