Re: MACROS in gdb ???

Eli Zaretskii
2001-03-21T15:59:00Z

On Tue, 20 Mar 2001, Kevin Buettner wrote:

> I usually make an attempt at figuring out the problem in the
> optimized version; but sometimes either there just isn't enough
> debug information or the behavior is too confusing. At that point,
> I'll recompile the source file in question with lower optimization.

Yes, I agree: turning off optimizations should be the last resort, if
debugging optimized code is so confusing that you can't figure out
what's going on.

I find that it is usually unnecessary to turn off optimizations,
except in very rare cases.