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

Everton Vieira tonvieira at gmail.com
Tue Feb 21 21:47:18 CET 2012


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 just
>>>>> the address us to use "-gl"
>>>>> 
>>>>> I think I'm not clear enough to say that I have used -gl for this, and I
>>>>> don't get the line information. I've tried this on 2 places: ExceptProc and
>>>>> TApplication.OnException.
>>>>> 
>>>> It should be noted, that afaik if the BackTraceStrFunc encounters an error, it is reset to the system one (without line info). So once backtrace failed (maybe problems reading a particular part of the debug info, it switches itself off... (for all further calls)
>>>> 
>>>> If you don't get results: then you should mention if that was using stabs, or dwarf. And 32bit 64 bit.
>>> Did you have looked at the example i send? It also is not working. I`m on 32b mac osx lion with svn version instaled. And with none of the available options have worked: automatic, stabs, dwarf, dwarf2, dwarf3 beta.
>>> 
>> Well then maybe there is a bug on Mac.
>> 
>> It does work for me on windows (and IIRC I also had success on Linux) both 32 bit.
> 
> I have a virtualized windows xp here. I`ll try there.

Also not worked, not with stabs or dwarf. Tomorrow i`ll test a host windows machine. But i can advance that some time ago i did this tests and didn`t worked until i`ve used that units that i send some mails ago.

> 
>> 
>> 
>> 
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> 




More information about the fpc-pascal mailing list