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

Marco van de Voort marcov at stack.nl
Thu Jul 14 16:05:04 CEST 2005


> 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)




More information about the fpc-pascal mailing list