From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: Kevin Buettner Cc: Aditya Chugh , gdb@sourceware.cygnus.com Subject: Re: MACROS in gdb ??? Date: Wed, 21 Mar 2001 15:59:00 -0000 Message-id: References: <1010320165053.ZM10189@ocotillo.lan> X-SW-Source: 2001-03/msg00221.html 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.