Re: [Lazarus] Need testers for the a new debugger

2014-12-04 Thread Mattias Gaertner
On Thu, 4 Dec 2014 15:56:14 +0100 Reimar Grabowski wrote: > On Sat, 22 Nov 2014 02:33:45 +0100 > Mattias Gaertner wrote: > > > On Fri, 21 Nov 2014 23:51:13 +0100 > > Mattias Gaertner wrote: > > > > > On Fri, 21 Nov 2014 16:31:26 +0100 > > > Reimar Grabowski wrote: > > >[...] > > > > Create n

Re: [Lazarus] Need testers for the a new debugger

2014-12-04 Thread Reimar Grabowski
On Sat, 22 Nov 2014 02:33:45 +0100 Mattias Gaertner wrote: > On Fri, 21 Nov 2014 23:51:13 +0100 > Mattias Gaertner wrote: > > > On Fri, 21 Nov 2014 16:31:26 +0100 > > Reimar Grabowski wrote: > >[...] > > > Create new project -> run -> stop -> AV. > > The Assembler window initialized only if i

Re: [Lazarus] Need testers for the a new debugger

2014-11-28 Thread Mattias Gaertner
On Fri, 28 Nov 2014 12:37:42 +0100 Joost van der Sluis wrote: >[...] > > BTW, "Step into" does not work with FPC 2.7.1. > > More likely is that you've encountered one of the situations where "Step > into" does not work. Normally it works? You are right. Sorry for the false alarm. I will report

Re: [Lazarus] Need testers for the a new debugger

2014-11-28 Thread Joost van der Sluis
On 11/25/2014 07:50 PM, Mattias Gaertner wrote: On Mon, 24 Nov 2014 11:48:38 +0100 Joost van der Sluis wrote: On 11/22/2014 12:18 AM, Mattias Gaertner wrote: On Fri, 21 Nov 2014 23:08:00 + Martin Frb wrote: [...] So as far as the debugger goes, this would then be correctly following th

Re: [Lazarus] Need testers for the a new debugger

2014-11-25 Thread Mattias Gaertner
On Mon, 24 Nov 2014 11:48:38 +0100 Joost van der Sluis wrote: > On 11/22/2014 12:18 AM, Mattias Gaertner wrote: > > On Fri, 21 Nov 2014 23:08:00 + > > Martin Frb wrote: > > > >> [...] > >> So as far as the debugger goes, this would then be correctly following > >> the debug info. > > > > Fun

Re: [Lazarus] Need testers for the a new debugger

2014-11-24 Thread C Western
On 24/11/14 10:46, Joost van der Sluis wrote: On 11/22/2014 12:45 PM, C Western wrote: I have been switching back and forth between gdb and the new one - both have some issues. The one I noticed most recently with the new one is with a multi threaded application - a break set in the thread seem

Re: [Lazarus] Need testers for the a new debugger

2014-11-24 Thread Joost van der Sluis
On 11/22/2014 12:18 AM, Mattias Gaertner wrote: On Fri, 21 Nov 2014 23:08:00 + Martin Frb wrote: [...] So as far as the debugger goes, this would then be correctly following the debug info. Funny fpc. Thanks for checking. BTW, the default TGDBMIDebugger jumps even worse. Begin, End, Beg

Re: [Lazarus] Need testers for the a new debugger

2014-11-24 Thread Joost van der Sluis
On 11/22/2014 12:45 PM, C Western wrote: I have been switching back and forth between gdb and the new one - both have some issues. The one I noticed most recently with the new one is with a multi threaded application - a break set in the thread seem to cause the debugger to become "lost". Is the

Re: [Lazarus] Need testers for the a new debugger

2014-11-22 Thread Marc Weustink
zarus] Need testers for the a new debugger >On Fri, 21 Nov 2014 15:12:48 + >Martin Frb wrote: > >> On 21/11/2014 14:03, Mattias Gaertner wrote: >> > On Mon, 14 Jul 2014 23:13:14 +0200 >> > Joost van der Sluis wrote: >> > >> >> [...] >&

Re: [Lazarus] Need testers for the a new debugger

2014-11-22 Thread C Western
I have been switching back and forth between gdb and the new one - both have some issues. The one I noticed most recently with the new one is with a multi threaded application - a break set in the thread seem to cause the debugger to become "lost". Is the debugger set up to cope in this situati

Re: [Lazarus] Need testers for the a new debugger

2014-11-22 Thread Martin Frb
On 22/11/2014 01:33, Mattias Gaertner wrote: On Fri, 21 Nov 2014 23:51:13 +0100 Mattias Gaertner wrote: On Fri, 21 Nov 2014 16:31:26 +0100 Reimar Grabowski wrote: [...] Create new project -> run -> stop -> AV. The Assembler window initialized only if it was not docked. I fixed that. The AV

Re: [Lazarus] Need testers for the a new debugger

2014-11-22 Thread Mattias Gaertner
On Sat, 22 Nov 2014 11:27:30 + Martin Frb wrote: > Why do you want to pass the record instead of the pointer? >[...] > The param could be const/constref instead of pointer. The patch passes the parameter as const. > But as the argument is already pointer, why? Someone may be too lazy to re

Re: [Lazarus] Need testers for the a new debugger

2014-11-22 Thread Martin Frb
Why do you want to pass the record instead of the pointer? The pointer is valid during the entire call (inside Append). Append does not store the pointer, but a copy of the data. So this is save. Passing the pointer saves the need to pass the entire record by value (or in other word, to make

Re: [Lazarus] Need testers for the a new debugger

2014-11-22 Thread Mattias Gaertner
On Sat, 22 Nov 2014 03:14:39 -0300 Flávio Etrusco wrote: > On Fri, Nov 21, 2014 at 10:33 PM, Mattias Gaertner > wrote: > > On Fri, 21 Nov 2014 23:51:13 +0100 > > Mattias Gaertner wrote: > > > (...) > > Without the AVs you can see the mem leaks. I fixed the three mem leaks. > > Here's a patch t

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Flávio Etrusco
On Fri, Nov 21, 2014 at 10:33 PM, Mattias Gaertner wrote: > On Fri, 21 Nov 2014 23:51:13 +0100 > Mattias Gaertner wrote: > (...) > Without the AVs you can see the mem leaks. I fixed the three mem leaks. Here's a patch to change the Append method, just in case ;-) Best regards, Flávio diff --git

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Mattias Gaertner
On Fri, 21 Nov 2014 23:51:13 +0100 Mattias Gaertner wrote: > On Fri, 21 Nov 2014 16:31:26 +0100 > Reimar Grabowski wrote: >[...] > > Create new project -> run -> stop -> AV. The Assembler window initialized only if it was not docked. I fixed that. The AV is gone. Then I got an AV when closing t

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Mattias Gaertner
On Fri, 21 Nov 2014 23:08:00 + Martin Frb wrote: >[...] > So as far as the debugger goes, this would then be correctly following > the debug info. Funny fpc. Thanks for checking. BTW, the default TGDBMIDebugger jumps even worse. Begin, End, Begin, i:=3. So the new debugger is better here.

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Martin Frb
On 21/11/2014 22:46, Mattias Gaertner wrote: But I see it for example with any constructor. Even as simple as this: type TMyClass = class public i: Integer; constructor Create; end; constructor TMyClass.Create; begin i:=3; end; procedure TForm1.FormCreate(Sender: TObject)

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Mattias Gaertner
On Fri, 21 Nov 2014 16:31:26 +0100 Reimar Grabowski wrote: > On Mon, 14 Jul 2014 23:13:14 +0200 > Joost van der Sluis wrote: >[...] > Onto the real problem. > Starting and Stopping a program leads to an AV, always, any program. I can confirm this with fpc 2.6.4 too. > Create new project -> run

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Mattias Gaertner
On Fri, 21 Nov 2014 16:31:26 +0100 Reimar Grabowski wrote: > On Mon, 14 Jul 2014 23:13:14 +0200 > Joost van der Sluis wrote: > > Hi, > > > To install the debugger just install the > > components/lazdebuggers/lazdebuggerfp.lpk package. After you've done > > this, go to tools->options->debugge

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Mattias Gaertner
On Fri, 21 Nov 2014 15:55:17 + Martin Frb wrote: > On 21/11/2014 15:23, Mattias Gaertner wrote: > >> Without looking at it, I have seen that with gdb too, though only for > >> certain complier help procs (iirc chek object stuff) > > Can you reproduce it? > > > > Actually no, I cant. > > But

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Martin Frb
On 21/11/2014 15:23, Mattias Gaertner wrote: Without looking at it, I have seen that with gdb too, though only for certain complier help procs (iirc chek object stuff) Can you reproduce it? Actually no, I cant. But I have the RTL with debug info. If you dont then stepping needs to step over

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Reimar Grabowski
On Mon, 14 Jul 2014 23:13:14 +0200 Joost van der Sluis wrote: Hi, > To install the debugger just install the > components/lazdebuggers/lazdebuggerfp.lpk package. After you've done > this, go to tools->options->debugger and select the 'FpDebug internal > Dwarf-debugger'. You forgot to mention

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Mattias Gaertner
On Fri, 21 Nov 2014 15:12:48 + Martin Frb wrote: > On 21/11/2014 14:03, Mattias Gaertner wrote: > > On Mon, 14 Jul 2014 23:13:14 +0200 > > Joost van der Sluis wrote: > > > >> [...] > >> The debugger has been improved a lot and I could need some help testing > >> the thing. > > On single step

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Martin Frb
On 21/11/2014 14:03, Mattias Gaertner wrote: On Mon, 14 Jul 2014 23:13:14 +0200 Joost van der Sluis wrote: [...] The debugger has been improved a lot and I could need some help testing the thing. On single stepping the debugger always jumps into a proc, then to the end of the proc and then to

Re: [Lazarus] Need testers for the a new debugger

2014-11-21 Thread Mattias Gaertner
On Mon, 14 Jul 2014 23:13:14 +0200 Joost van der Sluis wrote: >[...] > The debugger has been improved a lot and I could need some help testing > the thing. On single stepping the debugger always jumps into a proc, then to the end of the proc and then to the first line. Bug or design? Mattias

Re: [Lazarus] Need testers for the a new debugger

2014-08-25 Thread Dmitry Boyarintsev
On Mon, Aug 25, 2014 at 10:47 AM, Joost van der Sluis wrote: > 2. Could the compiler add more information to make this easier? Or >> is it simply a matter of compiling everything with a stack frame? >> >> How about using a 3d party library compiled without debugging info / >> stack frame

Re: [Lazarus] Need testers for the a new debugger

2014-08-25 Thread Joost van der Sluis
On 08/25/2014 02:02 PM, Dmitry Boyarintsev wrote: On Mon, Aug 25, 2014 at 6:26 AM, C Western mailto:l...@c-m-w.me.uk>> wrote: 1. How about a "slow step" option? What's is slow step option? Is it stepping over each instruction until the next known line reached? As I wrote that a 'perfect'

Re: [Lazarus] Need testers for the a new debugger

2014-08-25 Thread Dmitry Boyarintsev
On Mon, Aug 25, 2014 at 6:26 AM, C Western wrote: > > 1. How about a "slow step" option? > What's is slow step option? Is it stepping over each instruction until the next known line reached? 2. Could the compiler add more information to make this easier? Or is it > simply a matter of compiling e

Re: [Lazarus] Need testers for the a new debugger

2014-08-25 Thread C Western
On 24/08/14 16:44, Joost van der Sluis wrote: On 07/21/2014 10:11 PM, C Western wrote: Managed to create a small test program: program tproj; uses sysutils; procedure a(const s: string); var a: string; r: array [0..10] of Double; begin a := s+s+s; r[8] := StrToFloat(a); WriteLn(a, '

Re: [Lazarus] Need testers for the a new debugger

2014-08-24 Thread Joost van der Sluis
On 07/21/2014 10:11 PM, C Western wrote: Managed to create a small test program: program tproj; uses sysutils; procedure a(const s: string); var a: string; r: array [0..10] of Double; begin a := s+s+s; r[8] := StrToFloat(a); WriteLn(a, ' ', r[8]) end; begin a('6'); <<-Set break po

Re: [Lazarus] Need testers for the a new debugger

2014-07-21 Thread C Western
On 21/07/14 12:44, Joost van der Sluis wrote: > On 20/07/14 15:47, Joost van der Sluis wrote: > I haven't seen the spurious SIGSEGV for a while, so maybe that is fixed. > I am still seeing the spurious leaving of a routine on pressing step > into on one particular begin, but mostly it looks g

Re: [Lazarus] Need testers for the a new debugger

2014-07-21 Thread Sven Barth
Am 21.07.2014 13:45 schrieb "Joost van der Sluis" : > > Not sure about the spurious step - I notice on some routines stepping > > steps to the end line sometimes and then back into the routine. Perahps > > it is related to this? > > Do you have an example? It could be that the execution point reall

Re: [Lazarus] Need testers for the a new debugger

2014-07-21 Thread Joost van der Sluis
> On 20/07/14 15:47, Joost van der Sluis wrote: > I haven't seen the spurious SIGSEGV for a while, so maybe that is fixed. > I am still seeing the spurious leaving of a routine on pressing step > into on one particular begin, but mostly it looks good - I think it is > rather faster than the gdb

Re: [Lazarus] Need testers for the a new debugger

2014-07-21 Thread Gabor Boros
2014.07.21. 11:42 keltezéssel, Joost van der Sluis írta: I 've tried that myself again and it installed without any problems. Maybe you can try to run the Lazarus itself in GDB, after you've installed the package. Then when you get the 'out of memory' problem, type 'bt' and send us the backtrac

Re: [Lazarus] Need testers for the a new debugger

2014-07-21 Thread Joost van der Sluis
> 2014.07.14. 23:13 keltezéssel, Joost van der Sluis írta: > > To install the debugger just install the > > components/lazdebuggers/lazdebuggerfp.lpk package. > > Can anybody install on Win32? I 've tried that myself again and it installed without any problems. Maybe you can try to run the Lazar

Re: [Lazarus] Need testers for the a new debugger

2014-07-20 Thread C Western
On 20/07/14 15:47, Joost van der Sluis wrote: You are right, the backtrace looks normal. I suspected that the read was not being called from within the debug-thread. Although in that case the error-code normally is 3, not 5. But from the backtrace it is clear that this is not the case. You are p

Re: [Lazarus] Need testers for the a new debugger

2014-07-20 Thread Joost van der Sluis
> On 19/07/14 22:26, Joost van der Sluis wrote: > > > > Do you get a message on the console like 'failed to write data at > > xx'? > > > > > > Just tried it again - it doesn't seem to be consistent. The specific was > > > stepping into a routine, and the problem seems to happen when steppin

Re: [Lazarus] Need testers for the a new debugger

2014-07-20 Thread Gabor Boros
2014.07.14. 23:13 keltezéssel, Joost van der Sluis írta: To install the debugger just install the components/lazdebuggers/lazdebuggerfp.lpk package. Hi All, Can anybody install on Win32? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus.freep

Re: [Lazarus] Need testers for the a new debugger

2014-07-20 Thread C Western
On 19/07/14 22:26, Joost van der Sluis wrote: > > Did you step directly into fpc_shortstr_SInt, or did you do a 'step > > into', and did it eventually arrived at fpc_shortstr_SInt, because it > > was the first procedure with debug-info? > > > > In the first case, a software-debug breakpoint

Re: [Lazarus] Need testers for the a new debugger

2014-07-19 Thread Joost van der Sluis
> > Did you step directly into fpc_shortstr_SInt, or did you do a 'step > > into', and did it eventually arrived at fpc_shortstr_SInt, because it > > was the first procedure with debug-info? > > > > In the first case, a software-debug breakpoint is set, which is probably > > not removed correctly.

Re: [Lazarus] Need testers for the a new debugger

2014-07-19 Thread C Western
On 19/07/14 15:18, Joost van der Sluis wrote: > Follow up to this - a simple patch (attached) allows the rtl source to > show, rather than the assembler window. However there seems to be a more > fundamental problem, in that a "step into" that ends up stepping into a > rtl routine like fpc_sh

Re: [Lazarus] Need testers for the a new debugger

2014-07-19 Thread Joost van der Sluis
> Follow up to this - a simple patch (attached) allows the rtl source to > show, rather than the assembler window. However there seems to be a more > fundamental problem, in that a "step into" that ends up stepping into a > rtl routine like fpc_shortstr_SInt reports a SIGSEGV in the debugged >

Re: [Lazarus] Need testers for the a new debugger

2014-07-19 Thread C Western
On 19/07/14 10:35, C Western wrote: On 16/07/14 08:53, Joost van der Sluis wrote: > Looks promising, but (on current SVN): > > an explicit raise Exception.Create causes an assembler window to appear, > trying to show ../inc/except.inc rather than the source line with the > raise as the stan

Re: [Lazarus] Need testers for the a new debugger

2014-07-19 Thread C Western
On 16/07/14 08:53, Joost van der Sluis wrote: > Looks promising, but (on current SVN): > > an explicit raise Exception.Create causes an assembler window to appear, > trying to show ../inc/except.inc rather than the source line with the > raise as the standard debugger does. Do you have a rt

Re: [Lazarus] Need testers for the a new debugger

2014-07-19 Thread Joost van der Sluis
> when I switched to the new debugger, I have no output in the Console window > (Terminal Output). > > Whenever I use WriteLn() or  DebugLn() in code, this window remains empty > while > with GDB I can see it. Yeah, that window was added because with gdb it's difficult to debug console-applic

Re: [Lazarus] Need testers for the a new debugger

2014-07-18 Thread Vojtěch Čihák
jtěch  __ Od: Joost van der Sluis Komu: Datum: 14.07.2014 23:14 Předmět: [Lazarus] Need testers for the a new debugger Hi all, The debugger has been improved a lot and I could need some help testing  the

Re: [Lazarus] Need testers for the a new debugger

2014-07-18 Thread Joost van der Sluis
On 07/16/2014 09:53 AM, Joost van der Sluis wrote: > I hung lazarus by hitting F4 (step to current line). The backtrace may help: Step to current line is indeed broken, I'll fix that. This one is fixed. But I discovered that removing breakpoints while the debuggee is running is buggy. Joos

Re: [Lazarus] Need testers for the a new debugger

2014-07-16 Thread Gabor Boros
2014.07.16. 9:58 keltezéssel, Joost van der Sluis írta: At install? That's really strange. Did you get Lazarus up again? Normally you can always fix things with a 'make all' from the command-line. Then start lazarus, and do a 'Build all' from within the IDE. Thinks like 'Out of memory' or 'Disk

Re: [Lazarus] Need testers for the a new debugger

2014-07-16 Thread Joost van der Sluis
> On 14/07/14 22:13, Joost van der Sluis wrote: > > Hi all, > > > > As I've written before there's a new debugger available for Lazarus. > > (Actually there are two new debuggers, but I'm talking about the new > > gdb-less debugger) > > > > The debugger has been improved a lot and I could need some

Re: [Lazarus] Need testers for the a new debugger

2014-07-16 Thread Gabor Boros
2014.07.15. 18:50 keltezéssel, Joost van der Sluis írta: Damn, I didn't think of that. Should be fixed now. Joost. Tried again and got out of memory at lpk install, Lazarus crash and never start after. Gabor -- ___ Lazarus mailing list Lazarus@li

Re: [Lazarus] Need testers for the a new debugger

2014-07-15 Thread C Western
On 14/07/14 22:13, Joost van der Sluis wrote: Hi all, As I've written before there's a new debugger available for Lazarus. (Actually there are two new debuggers, but I'm talking about the new gdb-less debugger) The debugger has been improved a lot and I could need some help testing the thing.

Re: [Lazarus] Need testers for the a new debugger

2014-07-15 Thread Joost van der Sluis
> Am 15.07.2014 09:47 schrieb "Gabor Boros" >: > > > > 2014.07.14. 23:13 keltezéssel, Joost van der Sluis írta: > > > >> To install the debugger just install the > >> components/lazdebuggers/lazdebuggerfp.lpk package. After you've done > >> this, go to tools->options-

Re: [Lazarus] Need testers for the a new debugger

2014-07-15 Thread Sven Barth
Am 15.07.2014 09:47 schrieb "Gabor Boros" : > > 2014.07.14. 23:13 keltezéssel, Joost van der Sluis írta: > >> To install the debugger just install the >> components/lazdebuggers/lazdebuggerfp.lpk package. After you've done >> this, go to tools->options->debugger and select the 'FpDebug internal >>

Re: [Lazarus] Need testers for the a new debugger

2014-07-15 Thread Gabor Boros
2014.07.14. 23:13 keltezéssel, Joost van der Sluis írta: To install the debugger just install the components/lazdebuggers/lazdebuggerfp.lpk package. After you've done this, go to tools->options->debugger and select the 'FpDebug internal Dwarf-debugger'. Hi, components\lazdebuggers\lazdebuggerf

Re: [Lazarus] Need testers for the a new debugger

2014-07-14 Thread Joost van der Sluis
> Il 14/07/2014 23:13, Joost van der Sluis ha scritto: > > Hi all, > > > > As I've written before there's a new debugger available for Lazarus. > > (Actually there are two new debuggers, but I'm talking about the new > > gdb-less debugger) > > > > The debugger has been improved a lot and I could

Re: [Lazarus] Need testers for the a new debugger

2014-07-14 Thread Giuliano Colla
Il 14/07/2014 23:13, Joost van der Sluis ha scritto: Hi all, As I've written before there's a new debugger available for Lazarus. (Actually there are two new debuggers, but I'm talking about the new gdb-less debugger) The debugger has been improved a lot and I could need some help testing

[Lazarus] Need testers for the a new debugger

2014-07-14 Thread Joost van der Sluis
Hi all, As I've written before there's a new debugger available for Lazarus. (Actually there are two new debuggers, but I'm talking about the new gdb-less debugger) The debugger has been improved a lot and I could need some help testing the thing. The debugger only works on i386 and x86_64