[fpc-pascal] Logging full runtime-error/exception backtrace

Everton Vieira tonvieira at gmail.com
Mon Feb 20 16:52:09 CET 2012


Is supposed that with the -gl and the BackTraceStrFunc would get all the
info with the line number as well? Because if is true i've seen not work
and could test again.
2012/2/20 Sven Barth <pascaldragon at googlemail.com>

> Am 20.02.2012 16:34, schrieb Martin:
>
>  If you do not want to ship with debug info:
>>
>> - compile with debug info
>> - keep a copy of the file with debug info
>> - use strip[.exe] to remove the debug info from shipping version
>> - dump addresses
>>
>> when you get the addresses, you can use gdb and the copy with debug info
>> that you kept (must match 100% the shipped version)
>>
>> you will need a smass script calling gdb for each address
>>
>>
>> gdb.exe -i mi project1.exe --eval-command="info line *0x428f60"
>> --eval-command=q
>>
>
> Alternatively - as I already wrote:
>
> - compile with "-Xg"
> - keep the appname.dbg file
> - dump addresses
>
> command to use:
>
> gdb.exe -i mi project1.exe --symbols=project1.dbg --eval-command="info
> line *0x428f60" --eval-command=q
>
> Regards,
> Sven
>
> ______________________________**_________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>
>



-- 
Everton Vieira.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120220/79b9e616/attachment.html>


More information about the fpc-pascal mailing list