[fpc-pascal] Help with Delphi ASM translation to FPC

2015-03-12 Thread Graeme Geldenhuys
Hi, Could somebody confirm if the Delphi ASM does the same as the FPC code? This code is used in a unit testing framework to help report the exact location of where an error was raised. It seems to work well in Delphi, but not in FPC. Under FPC it seems to always return the same address, even tho

Re: [fpc-pascal] Help with Delphi ASM translation to FPC

2015-03-12 Thread Graeme Geldenhuys
On 2015-03-12 23:15, Graeme Geldenhuys wrote: > // FPC cross-platform implementation > function CallerAddr: Pointer; > begin > Result := get_caller_addr(get_frame); > end; I was told from another source my FPC implementation was incorrect and should rather be: [Anybody that could explain the di

Re: [fpc-pascal] Help with Delphi ASM translation to FPC

2015-03-12 Thread Graeme Geldenhuys
On 2015-03-13 00:03, Graeme Geldenhuys wrote: > Next part is to extract the line info information to confirm that the > addresses I now see are indeed correct. Success!!! :) Finally I have full details of where a failure occurs. === tiOPFUnitTestsFPGui.Non