public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "D.Venkatasubramanian, Noida" <dvenkat@noida.hcltech.com>
To: Huaxia Zhao <delzhao_linux@yahoo.com>
Cc: gdb@sources.redhat.com
Subject: Re: Why  GCC/ GDB ignore a normal C  statement?
Date: Tue, 06 May 2003 08:56:00 -0000	[thread overview]
Message-ID: <1052211765.4348.39.camel@albatross> (raw)
In-Reply-To: <20030505113250.55949.qmail@web20709.mail.yahoo.com>

Hi,

Did you use some optimization during compilation. If yes, then that
could be the problem. Optimization should be used only for the final
release. This is a common mistake made by new users.

Venky

On Mon, 2003-05-05 at 17:02, Huaxia Zhao wrote:
> 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

  reply	other threads:[~2003-05-06  8:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-05 11:32 Huaxia Zhao
2003-05-06  8:56 ` D.Venkatasubramanian, Noida [this message]
2003-05-06 12:52   ` Jim Robertson
2003-05-06 17:17     ` Eli Zaretskii
2003-05-08  5:16 D.Venkatasubramanian, Noida
2003-05-08 16:07 Eli Zaretskii
2003-05-09 10:56 ` Felix Lee

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=1052211765.4348.39.camel@albatross \
    --to=dvenkat@noida.hcltech.com \
    --cc=delzhao_linux@yahoo.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).