We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
When I debug my application with DS-5, the debug indicator doesn't point to correct instructions sometimes or jumps back. Some variables show unavailable, or show value later after one or two instructions.
we saw same bug. is bug in optimization. switch off please.
No, I very much suspect that it is not!
It is not a bug in anything at all; it is perfectly normal behaviour for any debugger when working with any correctly optimised code!
The problem is not in the tools, but in the user's understanding (or lack thereof)
How do I turn off code optimization for debugging?
If you are using gcc, then -O0 will turn off optimizations. Here is a full list of gcc optimization options:
gcc.gnu.org/.../Optimize-Options.html
thanks, I see great improvement, but data struct variables are not updated often.