From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22363 invoked by alias); 30 Jun 2008 15:36:56 -0000 Received: (qmail 22349 invoked by uid 22791); 30 Jun 2008 15:36:55 -0000 X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Jun 2008 15:36:26 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 7853245B1C for ; Mon, 30 Jun 2008 17:36:24 +0200 (CEST) From: Andreas Schwab To: gdb Mailing List Subject: Re: [NEWBIE] How to exit from a loop References: <20080630153311.GA19538@geppetto> X-Yow: Will it improve my CASH FLOW? Date: Mon, 30 Jun 2008 15:36:00 -0000 In-Reply-To: <20080630153311.GA19538@geppetto> (Stefano Sabatini's message of "Mon, 30 Jun 2008 17:33:11 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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/msg00320.txt.bz2 Stefano Sabatini writes: > 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. (gdb) help until Execute until the program reaches a source line greater than the current or a specified location (same args as break command) within the current frame. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."