Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Displaying values in a loop
@ 2007-04-16  8:36 MVD
  2007-04-16  9:28 ` Dave Korn
  0 siblings, 1 reply; 2+ messages in thread
From: MVD @ 2007-04-16  8:36 UTC (permalink / raw)
  To: gdb


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-16  9:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16  8:36 Displaying values in a loop MVD
2007-04-16  9:28 ` Dave Korn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox