[fpc-pascal] backtrace code in fpc

Matias Vara matiasevara at gmail.com
Mon Jul 17 22:58:31 CEST 2017


Hello everyone, I am trying to port the code for backtrace, e.g.,
GetLineInfo(), to my freepascal kernel in order to print a backtrace when
an exception happens. The drawback now is that I am not sure where the
source is. I think it is the unit lnfodwrf.pp however I am not sure. From
the code, it seems that this unit is opening the executable to get the
debug section, is this correct? is it not getting the name of the symbols
from memory? In my case, the debug symbols must be taken from memory since
there is no disk access.

Regards, Matias.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170717/5902feb1/attachment.html>


More information about the fpc-pascal mailing list