From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15055 invoked by alias); 12 Dec 2005 11:35:48 -0000 Received: (qmail 15047 invoked by uid 22791); 12 Dec 2005 11:35:47 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 12 Dec 2005 11:35:46 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 1A16848CE08; Mon, 12 Dec 2005 06:35:44 -0500 (EST) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22381-01; Mon, 12 Dec 2005 06:35:43 -0500 (EST) Received: from takamaka.act-europe.fr (takamaka.act-europe.fr [212.157.227.139]) by nile.gnat.com (Postfix) with ESMTP id 5920F48CDC9; Mon, 12 Dec 2005 06:35:43 -0500 (EST) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 37A6C47E79; Mon, 12 Dec 2005 12:35:39 +0100 (CET) Date: Mon, 12 Dec 2005 11:35:00 -0000 From: Joel Brobecker To: Grazia Russo-Lassner Cc: gdb@sources.redhat.com Subject: Re: stepping past a loop Message-ID: <20051212113539.GD1493@adacore.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00144.txt.bz2 > if while debugging I reach a loop that iterates hundreds of times > (for ( int i = 0; i < 500; ++i ) ...) > > each time I hit "next" it seems I am going through one iteration at a > time; instead, I want to skip that loop or not to gothrough every single > iteration: how would I do that ? I usually use the "until" command and continue just past the loop. Another approach is to insert a temporary breakpoint and then "cont". The GDB documentation should explain how "until" works. -- Joel