In gdb, I have the finish command to easily finish execution of a function frame, often when walking through code in the debugger, after looking at a few iterations
finish
gdb doesn't know where a loop ends so it can't do that. I think the best you can do is use the advance command with a location after the loop.
gdb
advance