[fpc-pascal] weird compiler(?) problem
Xiangrong Fang
xrfang at gmail.com
Fri Feb 14 02:36:51 CET 2014
Hi Martin,
2014-02-14 1:14 GMT+08:00 Martin Frb <lazarus at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140214/b14d5001/attachment.html>
More information about the fpc-pascal
mailing list