This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [NEWBIE] How to exit from a loop


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]