How do I get GDB to break out of a loop?
I do this:
1. do a source listing.
2. Set a breakpoint at the next line where loop ends.
3. Continue
You can use until
to make the loop end.
You should give it at the end of the loop.
- Useful if you no need step into iterate a loop.
jump
looks like what you want. See Continuing at a Different Address