From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21540 invoked by alias); 30 Jun 2008 15:36:17 -0000 Received: (qmail 21532 invoked by uid 22791); 30 Jun 2008 15:36:17 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Jun 2008 15:35:57 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 43CAB98413 for ; Mon, 30 Jun 2008 15:35:56 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 11A849840B for ; Mon, 30 Jun 2008 15:35:56 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KDLQ3-0007EH-BV for gdb@sources.redhat.com; Mon, 30 Jun 2008 11:35:55 -0400 Date: Mon, 30 Jun 2008 15:36:00 -0000 From: Daniel Jacobowitz To: gdb Mailing List Subject: Re: [NEWBIE] How to exit from a loop Message-ID: <20080630153555.GA27743@caradoc.them.org> Mail-Followup-To: gdb Mailing List References: <20080630153311.GA19538@geppetto> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080630153311.GA19538@geppetto> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00319.txt.bz2 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