This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Why GCC/ GDB ignore a normal C statement?
On Tue, May 06, 2003 at 02:32:40PM +0530, D.Venkatasubramanian, Noida wrote:
> 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.
This may be getting (a little) off topic, but I disagree with the
above. Only turning on optimizations for a "final release" can have
unexpected consequences. Optimizations have a way of uncovering bugs
that go undetected in non-optimized code. At a minimum, testing should
be done with optimizations. Preferably, all development is done with
optimizations.
Jim
--
-----------------------------------------------------------------------------
Jim.Robertson@Motorola.com