[fpc-pascal] Debug information

2012-09-11 Thread Rainer Stratmann
I found out that there is no line information shown (-gl) if an error occurs (more or less shortly) after the program loads a dynamic library. This same behaviour happens with fpc version 2.4.2-0 and 2.6.0. If no library is loaded line information is shown. The error adresses are the same in bot

Re: [fpc-pascal] Debug information

2012-09-11 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: I found out that there is no line information shown (-gl) if an error occurs (more or less shortly) after the program loads a dynamic library. This same behaviour happens with fpc version 2.4.2-0 and 2.6.0. If no library is loaded line information is shown. The error ad

Re: [fpc-pascal] Debug information

2012-09-11 Thread Rainer Stratmann
Am Tuesday 11 September 2012 12:05:02 schrieb Mark Morgan Lloyd: > Rainer Stratmann wrote: > > I found out that there is no line information shown (-gl) if an error > > occurs (more or less shortly) after the program loads a dynamic library. > > > > This same behaviour happens with fpc version 2.4.

Re: [fpc-pascal] Debug information

2012-09-11 Thread Rainer Stratmann
Am Tuesday 11 September 2012 12:05:02 schrieb Mark Morgan Lloyd: > Are you expecting a line number associated with code in the > calling program or the .DLL/.so? By now only the main program if affected. ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Debug information

2012-09-11 Thread Martin
On 11/09/2012 10:28, Rainer Stratmann wrote: I found out that there is no line information shown (-gl) if an error occurs (more or less shortly) after the program loads a dynamic library. This same behaviour happens with fpc version 2.4.2-0 and 2.6.0. If no library is loaded line information is

[fpc-pascal] Constant of 2D array

2012-09-11 Thread Felipe Monteiro de Carvalho
Hello, Can I write constants of a 2D array? I am trying to convert some C++ code which uses this ... so far I tryed: const number_return_map: array[0..7][0..7] of U8 = ( ( 15, 14, 13, 12, 11, 10, 9, 8 ), ( 14, 0, 1, 3, 6, 10, 10, 9 ), ( 13, 1, 2, 4, 7, 11, 11, 10 ), ( 12, 3,

Re: [fpc-pascal] Constant of 2D array

2012-09-11 Thread Vincent Snijders
2012/9/11 Felipe Monteiro de Carvalho : > Hello, > > Can I write constants of a 2D array? I am trying to convert some C++ > code which uses this ... so far I tryed: > > const number_return_map: array[0..7][0..7] of U8 = const number_return_map: array[0..7,0..7] of byte = Vincent _

Re: [fpc-pascal] Constant of 2D array

2012-09-11 Thread Felipe Monteiro de Carvalho
On Tue, Sep 11, 2012 at 2:58 PM, Vincent Snijders wrote: > const number_return_map: array[0..7,0..7] of byte = Ah, nice, thanks =) Now it works... and the syntax is almost the same as in C++ which facilitates the conversion -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Constant of 2D array

2012-09-11 Thread Alexander Shishkin
11.09.2012 16:51, Felipe Monteiro de Carvalho пишет: Hello, Can I write constants of a 2D array? I am trying to convert some C++ code which uses this ... so far I tryed: const number_return_map: array[0..7][0..7] of U8 = ( ( 15, 14, 13, 12, 11, 10, 9, 8 ), ( 14, 0, 1, 3, 6, 10, 10,

Re: [fpc-pascal] Debug information

2012-09-11 Thread Rainer Stratmann
Am Tuesday 11 September 2012 14:16:35 schrieb Martin: > On 11/09/2012 10:28, Rainer Stratmann wrote: > > I found out that there is no line information shown (-gl) if an error > > occurs (more or less shortly) after the program loads a dynamic library. > > > > This same behaviour happens with fpc ve

Re: [fpc-pascal] Debug information

2012-09-11 Thread Martin
On 11/09/2012 16:07, Rainer Stratmann wrote: Or could for any other reason (including compiled with optimization) there be a stackframe (just one) that has no line info? May be. IIRC the line-info on stacktraces is only displayed until the very first time a line without info is discovered. Tha

Re: [fpc-pascal] Debug information

2012-09-11 Thread Mark Morgan Lloyd
Martin wrote: On 11/09/2012 10:28, Rainer Stratmann wrote: I found out that there is no line information shown (-gl) if an error occurs (more or less shortly) after the program loads a dynamic library. This same behaviour happens with fpc version 2.4.2-0 and 2.6.0. If no library is loaded lin

Re: [fpc-pascal] Debug information

2012-09-11 Thread Rainer Stratmann
Am Tuesday 11 September 2012 18:14:57 schrieb Mark Morgan Lloyd: > Martin wrote: > > On 11/09/2012 10:28, Rainer Stratmann wrote: > >> I found out that there is no line information shown (-gl) if an error > >> occurs > >> (more or less shortly) after the program loads a dynamic library. > >> > >> T

Re: [fpc-pascal] Debug information

2012-09-11 Thread Rainer Stratmann
Am Tuesday 11 September 2012 17:38:44 schrieb Martin: > > But why are the lines not shown if there is only one line without info? > > Missing recovery in the implementation... > > Now this is from memory. double check it. I may well remember this > wrong. > > Basically, if an error happens (ex

Re: [fpc-pascal] Debug information

2012-09-11 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Am Tuesday 11 September 2012 18:14:57 schrieb Mark Morgan Lloyd: Martin wrote: On 11/09/2012 10:28, Rainer Stratmann wrote: I found out that there is no line information shown (-gl) if an error occurs (more or less shortly) after the program loads a dynamic library. Th