Re: [fpc-pascal] Stack trace different for Windows and Linux

2017-01-24 Thread Terry Mead
Jonas - -O- option didn't do any different but I did bite the bullet and upgrade to 3.0 which does solve the problem. Thanks. On 25/01/2017 6:54 AM, Jonas Maebe wrote: On 23/01/17 10:17, Terry Mead wrote: When compiled and run under Windows it generates the stack trace: Runtime error 200 at $

Re: [fpc-pascal] Stack trace different for Windows and Linux

2017-01-24 Thread Jonas Maebe
On 23/01/17 10:17, Terry Mead wrote: When compiled and run under Windows it generates the stack trace: Runtime error 200 at $00401404 $00401404 TEST1, line 6 of test.pas $00401428 TEST2, line 11 of test.pas $00401451 main, line 16 of test.pas $004077D1 Which is what you would expec

[fpc-pascal] Stack trace different for Windows and Linux

2017-01-23 Thread Terry Mead
Gentlemen, I'm a new poster to the mail list. I have a problem logging call stack trace info following an exception. The following simple program generates a divide by zero error. PROGRAM Test; VAR i, j, k : Integer; PROCEDURE test1; BEGIN i := i - 1; k := j DIV i; END; {test}