From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22616 invoked by alias); 5 May 2003 11:32:51 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22609 invoked from network); 5 May 2003 11:32:51 -0000 Received: from unknown (HELO web20709.mail.yahoo.com) (216.136.226.182) by sources.redhat.com with SMTP; 5 May 2003 11:32:51 -0000 Message-ID: <20030505113250.55949.qmail@web20709.mail.yahoo.com> Received: from [195.92.168.167] by web20709.mail.yahoo.com via HTTP; Mon, 05 May 2003 04:32:50 PDT Date: Mon, 05 May 2003 11:32:00 -0000 From: Huaxia Zhao Subject: Why GCC/ GDB ignore a normal C statement? To: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00049.txt.bz2 Hi: As a beginner of linux programming, I am learning to recompile and rebuild my previous programs in Linux with GCC/GDB. However, there is something really annoying me. The code is showed as : if ( ( d_z - current ) < MIN_ERROR && ( d_z - current ) > -MIN_ERROR) { d_z += dz_inc; mp += mstep_k; i_cz += step_k; offset+= mstep_k; } some graphical front-ends of GDB like GVD show that the statement i_cz +=step_k; is NOT recongnised as a statement. The GDB just simpily ignores it when stepping to there. This means the varible i_cz,which is declared as a register int varible, has not updated after executing. The contexts work well and this part of code runs perfectlly when compiled with VC in Windows. Could someone give me an idea about this problem? I would be very grateful... Frank Zhao __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com