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

2012-02-21 Thread Everton Vieira
Em 21/02/2012, às 18:38, Everton Vieira escreveu: Em 21/02/2012, às 18:35, Martin escreveu: On 21/02/2012 20:28, Everton Vieira wrote: Em 21/02/2012, às 14:20, Martin escreveu: On 21/02/2012 16:14, leledumbo wrote: So the savest way to ensure that BackTraceStrFunc returns more than

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

2012-02-20 Thread leledumbo
I want to log the full runtime-error/exception backtrace to a file. I've tried all methods explained http://wiki.lazarus.freepascal.org/Logging_exceptions here but none seems to give the full backtrace. i.e. when compiled with -gl, instead of just the address, I could also get line NN of file

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

2012-02-20 Thread Everton Vieira
I use this units to do that. Was someone with the nickname crhonos who made. 2012/2/20 leledumbo leledumbo_c...@yahoo.co.id I want to log the full runtime-error/exception backtrace to a file. I've tried all methods explained http://wiki.lazarus.freepascal.org/Logging_exceptions here but none

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

2012-02-20 Thread Sven Barth
Am 20.02.2012 15:58, schrieb leledumbo: I want to log the full runtime-error/exception backtrace to a file. I've tried all methods explained http://wiki.lazarus.freepascal.org/Logging_exceptions here but none seems to give the full backtrace. i.e. when compiled with -gl, instead of just the

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

2012-02-20 Thread Martin
On 20/02/2012 14:58, leledumbo wrote: I want to log the full runtime-error/exception backtrace to a file. I've tried all methods explained http://wiki.lazarus.freepascal.org/Logging_exceptions here but none seems to give the full backtrace. i.e. when compiled with -gl, instead of just the

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

2012-02-20 Thread Sven Barth
Am 20.02.2012 16:08, schrieb Everton Vieira: I use this units to do that. Was someone with the nickname crhonos who made. These units will only work if the debug format is Stabs and not DWARF. Regards, Sven ___ fpc-pascal maillist -

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

2012-02-20 Thread Everton Vieira
I've tried sometimes to do directly with the -gl and the BackTraceStrFunc and i never was able to get the info of the error, maybe my fault. With this units that i've passed i was able to get the info of the error with the line number and everything else within the app. 2012/2/20 Martin

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

2012-02-20 Thread Sven Barth
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

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

2012-02-20 Thread Everton Vieira
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 pascaldra...@googlemail.com Am 20.02.2012 16:34, schrieb Martin: If you do not want to ship with debug

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

2012-02-20 Thread Sven Barth
Am 20.02.2012 16:52, schrieb Everton Vieira: 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. This only works if you do not strip the debug info from the executable (either

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

2012-02-20 Thread Martin
On 20/02/2012 15:52, Everton Vieira wrote: 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. It is supposed, yes. And it does for me. However I read something, someone said

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

2012-02-20 Thread Everton Vieira
2012/2/20 Sven Barth pascaldra...@googlemail.com Am 20.02.2012 16:52, schrieb Everton Vieira: 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. This only works if you do

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

2012-02-20 Thread Everton Vieira
2012/2/20 Martin laza...@mfriebe.de On 20/02/2012 15:52, Everton Vieira wrote: 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. It is supposed, yes. And it does for me.