Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Grazia Russo-Lassner <glassner@umiacs.umd.edu>
Cc: gdb@sources.redhat.com
Subject: Re: stepping past a loop
Date: Mon, 12 Dec 2005 11:35:00 -0000	[thread overview]
Message-ID: <20051212113539.GD1493@adacore.com> (raw)
In-Reply-To: <Pine.GSO.4.61.0512120628070.15423@trifle.umiacs.umd.edu>

> 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


      reply	other threads:[~2005-12-12 11:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-12 11:30 Grazia Russo-Lassner
2005-12-12 11:35 ` Joel Brobecker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051212113539.GD1493@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb@sources.redhat.com \
    --cc=glassner@umiacs.umd.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox