From: "Dave Korn" <dave.korn@artimi.com>
To: "'MVD'" <inetcop@gmail.com>, <gdb@sources.redhat.com>
Subject: RE: Displaying values in a loop
Date: Mon, 16 Apr 2007 09:28:00 -0000 [thread overview]
Message-ID: <018701c78009$8538c660$2e08a8c0@CAM.ARTIMI.COM> (raw)
In-Reply-To: <10012231.post@talk.nabble.com>
On 16 April 2007 09:37, MVD wrote:
> 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" ?
See the gdb info page, section 8.6 "Automatic display". Sounds like you
want the 'display' command.
cheers,
DaveK
--
Can't think of a witty .sigline today....
prev parent reply other threads:[~2007-04-16 9:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-16 8:36 MVD
2007-04-16 9:28 ` Dave Korn [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='018701c78009$8538c660$2e08a8c0@CAM.ARTIMI.COM' \
--to=dave.korn@artimi.com \
--cc=gdb@sources.redhat.com \
--cc=inetcop@gmail.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