[fpc-pascal] Calling unassigned procedure gives no stack trace with -gl

Anton Tichawa anton.tichawa at chello.at
Thu Jul 14 17:21:44 CEST 2005


Marco van de Voort wrote:

>>On Thu, Jul 14, 2005 at 10:27:01AM +0200, Peter Vreman wrote:
>>    
>>
>>>>Tom Verhoeff a ?crit :
>>>>
>>>>The point is that there is no stack trace with line numbers on the
>>>>(obviously correct) exception, in spite of the option -gl (even when
>>>>explicitly using SysUtils).
>>>>        
>>>>
>>>The problem is that the framepointer register EBP is 0 in the sigcontext.
>>>We can't solve this.
>>>      
>>>
>>So, where should a solution come from?  Where in the software/hardware
>>chain would a change be needed to make it work properly?
>>    
>>
>
>For *nix: prt/crt0, there is a xorl %ebp,%ebp  But there might be code
>that relies on this (main program's parent's frame being nil)
>
>  
>
shouldn't this go to fpc-devel?

(sorry, couldn't resist).

Anton.





More information about the fpc-pascal mailing list