From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20289 invoked by alias); 16 Apr 2007 08:36:58 -0000 Received: (qmail 20275 invoked by uid 22791); 16 Apr 2007 08:36:57 -0000 X-Spam-Check-By: sourceware.org Received: from www.nabble.com (HELO talk.nabble.com) (72.21.53.35) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 16 Apr 2007 09:36:55 +0100 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HdMhi-0002i6-09 for gdb@sources.redhat.com; Mon, 16 Apr 2007 01:36:54 -0700 Message-ID: <10012231.post@talk.nabble.com> Date: Mon, 16 Apr 2007 08:36:00 -0000 From: MVD To: gdb@sources.redhat.com Subject: Displaying values in a loop MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: inetcop@gmail.com X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00098.txt.bz2 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.