This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [NEWBIE] How to exit from a loop
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb Mailing List <gdb at sources dot redhat dot com>
- Date: Mon, 30 Jun 2008 11:35:55 -0400
- Subject: Re: [NEWBIE] How to exit from a loop
- References: <20080630153311.GA19538@geppetto>
On Mon, Jun 30, 2008 at 05:33:11PM +0200, Stefano Sabatini wrote:
> I wonder if there is a more efficient way to exit from the loop,
> without the need to set a breakpoint at the rigth place, continue and
> then unset the breakpoint but with just a single command/macro.
Sure - take a look at the "advance" and "until" commands.
--
Daniel Jacobowitz
CodeSourcery