Community
Participate
Working Groups
Build Identifier: 20100917-0705 In the attached fragment of code condition at line 846. So, debugger should go to line 856 or perhaps 852 but it goes to line 851! Inserting dummy statements before 851 debugger always goes to the last line before '}'. This seems to begin to happen after upgrading gcc to 4.4.4 or eclipse from 3.5.1 to 3.5.2. Not sure. I am using: Gentoo Linux; gcc 4.4.4 gdb 7.0.1 (I have also tried with 7.2) eclipse cdt current version. Reproducible: Always
Created attachment 182108 [details] Snapshot before stepping.
Created attachment 182109 [details] After stepping ("if" condition failled)
(In reply to comment #0) > In the attached fragment of code condition at line 846. Should be: In the attached fragment of code, condition at line 846 fails.
You're debugging optimised code. The compiler's optimiser reorders instructions so that there's no longer a one-to-one correspondence with the C. Build -O0 if you want an easier debugging experience.