Hi Martin,

2014-02-14 1:14 GMT+08:00 Martin Frb <laza...@mfriebe.de>:


> With -O2 and above the debugger does not always work.
>
> In case of such optimization the debug info compiled into the exe by fpc
> is not always accurate.
>
> It is not just blue dots, inspecting variables may show random data, ....
>
> Debugging with O2 and up, if you must, requires to only look at the
> disassembler and register window. registers can only be trusted in the ttop
> stackframe. selecting any other may not show correct info.
>

I never use optimization option other than O1, I think O1 is the default.
 As Sven suggested, I tried turning off optimization, and back on, still at
O1 level.
​​
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to