Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: MVD <inetcop@gmail.com>
To: gdb@sources.redhat.com
Subject: Displaying values in a loop
Date: Mon, 16 Apr 2007 08:36:00 -0000	[thread overview]
Message-ID: <10012231.post@talk.nabble.com> (raw)


Hi All,

I have a situation like below:

intj=0, k=2;

for(int i=0; i< 3 ; i++)
{
j=j+k;
}

Now, suppose I ran GDB and inside for loop I have to use print j and print k
to see the current values.
Does any body have any idea if there is a way to see the values of j and k
,in the for loop each time values are changes with out using "print" ?

Any help would be greatly appreciated.

Regards,
-MVD
-- 
View this message in context: http://www.nabble.com/Displaying-values-in-a-loop-tf3583092.html#a10012231
Sent from the gdb - General mailing list archive at Nabble.com.


             reply	other threads:[~2007-04-16  8:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-16  8:36 MVD [this message]
2007-04-16  9:28 ` Dave Korn

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=10012231.post@talk.nabble.com \
    --to=inetcop@gmail.com \
    --cc=gdb@sources.redhat.com \
    /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