[fpc-devel] DWARF info may be incorrect for location-expression, when value is in register

Martin fpc at mfriebe.de
Sat Oct 23 14:04:40 CEST 2021


Could anyone from the team comment on the following issue please?
https://gitlab.com/freepascal.org/lazarus/lazarus/-/merge_requests/28

It seems with -O2 FPC may set the location of a variable to a register 
(which is correct).
But it then attempts
    DW_OP_push_object_address, DW_OP_deref
which may not be correct (not sure, but read my big comment on the issue)

While -O2 is normally not for debugging, it may still be desirable that 
debug info is at least conform to the DWARF standard.




More information about the fpc-devel mailing list