Re: [fpc-pascal] Debug information

2015-01-14 Thread Rainer Stratmann
Linux Platform. In the past there was a discussion about it already. It may has to do with dynamic loaded library? On Tuesday 13 January 2015 16:32:37 you wrote: > On 13 Jan 2015, at 16:14, Martin Frb wrote: > > On 13/01/2015 14:40, Rainer Stratmann wrote: > >> Can not get debug information > >

Re: [fpc-pascal] Debug information

2015-01-13 Thread Jonas Maebe
On 13 Jan 2015, at 16:14, Martin Frb wrote: On 13/01/2015 14:40, Rainer Stratmann wrote: Can not get debug information -g -gl -gw switched on but no further information (line nr) is displayed when an error occured. -gl has a "feature" it prints the stack info, until it finds an addre

Re: [fpc-pascal] Debug information

2015-01-13 Thread Martin Frb
On 13/01/2015 14:40, Rainer Stratmann wrote: Can not get debug information -g -gl -gw switched on but no further information (line nr) is displayed when an error occured. -gl has a "feature" it prints the stack info, until it finds an address for which there is no stack info (e.g. in the r

[fpc-pascal] Debug information

2015-01-13 Thread Rainer Stratmann
Can not get debug information -g -gl -gw switched on but no further information (line nr) is displayed when an error occured. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Debug information

2012-09-12 Thread Rainer Stratmann
Am Tuesday 11 September 2012 19:30:55 schrieb 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 a

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

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

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

[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 again

2012-06-14 Thread Antonio Fortuny
Hi all again. About this boring problem I have maybe a track. I downloaded the latest Lazarus release (0.9.30 as it is on the main download page from France mirror) and installed it in place of 1.1 It runs FPC 2.6.0 Compile and install needed packages Compile and run the test project and get th

Re: [fpc-pascal] Debug information again

2012-06-13 Thread Martin
On 13/06/2012 14:12, Jonas Maebe wrote: Antonio Fortuny wrote on Wed, 13 Jun 2012: I can see the memory leak I have generated (read below) but no refecence to the line itself. Instead I receive the reference lines before and after the memory leak creation inside the rtl. The reason is that

Re: [fpc-pascal] Debug information again

2012-06-13 Thread Jonas Maebe
Antonio Fortuny wrote on Wed, 13 Jun 2012: I can see the memory leak I have generated (read below) but no refecence to the line itself. Instead I receive the reference lines before and after the memory leak creation inside the rtl. The reason is that the RTL itself is compiled with optimis

[fpc-pascal] Debug information again

2012-06-13 Thread Antonio Fortuny
Hi folks. I've got a serious prblem too with debugger and heaptrc. It look like the one described by *Rainer Stratmann *posted last month. My problem goes around the tracing of memory leaks. I've been busy with Martin on the Lazarus mailing list and he couldn't find why addresses were not follo

Re: [fpc-pascal] Debug information

2012-05-29 Thread Bernd Kreuss
On 29.05.2012 10:25, Rainer Stratmann wrote: > I will try later. Also make sure you have turned *off* all optimizations, they can sometimes mess up the stack trace badly (by removing unneeded stack frames which can produce very confusing results) and also I have witnessed at least one occasion whe

Re: [fpc-pascal] Debug information

2012-05-29 Thread Rainer Stratmann
Am Tuesday 29 May 2012 01:42:12 schrieb Martin: > On 28/05/2012 23:53, Rainer Stratmann wrote: > > Am Monday 28 May 2012 22:25:47 schrieb Martin: > >> Check that you have not accidentally set any options that will block > >> -gl, such as -Xs or maybe (may work but I do not know for sure) -Xg > >> >

Re: [fpc-pascal] Debug information

2012-05-28 Thread Martin
On 28/05/2012 23:53, Rainer Stratmann wrote: Am Monday 28 May 2012 22:25:47 schrieb Martin: Check that you have not accidentally set any options that will block -gl, such as -Xs or maybe (may work but I do not know for sure) -Xg After changing options, change "Build" or "Build all" from "run" m

Re: [fpc-pascal] Debug information

2012-05-28 Thread Rainer Stratmann
Am Monday 28 May 2012 22:25:47 schrieb Martin: > Check that you have not accidentally set any options that will block > -gl, such as -Xs or maybe (may work but I do not know for sure) -Xg > > After changing options, change "Build" or "Build all" from "run" menu. All done, same effect (only address

Re: [fpc-pascal] Debug information

2012-05-28 Thread Martin
On 28/05/2012 21:19, Rainer Stratmann wrote: Am Monday 28 May 2012 22:09:21 schrieb Martin: On 28/05/2012 20:35, Rainer Stratmann wrote: Am Monday 28 May 2012 21:12:30 schrieb Martin: On 27/05/2012 13:32, Rainer Stratmann wrote: How to get debug information? There is an error, but only adres

Re: [fpc-pascal] Debug information

2012-05-28 Thread Rainer Stratmann
Am Monday 28 May 2012 22:09:21 schrieb Martin: > On 28/05/2012 20:35, Rainer Stratmann wrote: > > Am Monday 28 May 2012 21:12:30 schrieb Martin: > >> On 27/05/2012 13:32, Rainer Stratmann wrote: > >>> How to get debug information? > >>> > >>> There is an error, but only adresses are shown. > >> > >

Re: [fpc-pascal] Debug information

2012-05-28 Thread Martin
On 28/05/2012 20:35, Rainer Stratmann wrote: Am Monday 28 May 2012 21:12:30 schrieb Martin: On 27/05/2012 13:32, Rainer Stratmann wrote: How to get debug information? There is an error, but only adresses are shown. How/ Where are the addresses shown? The addresses were shown in the output wi

Re: [fpc-pascal] Debug information

2012-05-28 Thread Rainer Stratmann
Am Monday 28 May 2012 21:12:30 schrieb Martin: > On 27/05/2012 13:32, Rainer Stratmann wrote: > > How to get debug information? > > > > There is an error, but only adresses are shown. > > How/ Where are the addresses shown? The addresses were shown in the output window (console). Runtime error 207

Re: [fpc-pascal] Debug information

2012-05-28 Thread Martin
On 27/05/2012 13:32, Rainer Stratmann wrote: How to get debug information? There is an error, but only adresses are shown. How/ Where are the addresses shown? Does your program has code of it's own, that dumps the stacktrace? (normally added using with -gl) Or do you run in a debugger (gdb?

Re: [fpc-pascal] Debug information

2012-05-28 Thread Rainer Stratmann
Am Sunday 27 May 2012 17:44:41 schrieb Sven Barth: > On 27.05.2012 14:32, Rainer Stratmann wrote: > > How to get debug information? > > > > There is an error, but only adresses are shown. > > > > I put on debugger Information in Lazarus (-g) but can get no further > > infos when an error occurs (ex

Re: [fpc-pascal] Debug information

2012-05-27 Thread Sven Barth
On 27.05.2012 14:32, Rainer Stratmann wrote: How to get debug information? There is an error, but only adresses are shown. I put on debugger Information in Lazarus (-g) but can get no further infos when an error occurs (except the adresses). Lazarus 0.9.30 fpc 2.4.2 You also need to enable l

[fpc-pascal] Debug information

2012-05-27 Thread Rainer Stratmann
How to get debug information? There is an error, but only adresses are shown. I put on debugger Information in Lazarus (-g) but can get no further infos when an error occurs (except the adresses). Lazarus 0.9.30 fpc 2.4.2 ___ fpc-pascal maillist - f