Re: [Lazarus] Timing of all compiler options on slow machines
The options are now read in a thread which is started when the Other page is opened. It is not perfect still as sometimes the parsed data is not used, but who cares... Please test. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus 1.1.99 Pre Release
The Lazarus team would like to announce that it has started the release preparations for Lazarus 1.2. The release process will consist of several steps which you can find here: http://wiki.lazarus.freepascal.org/Lazarus_1.2_fixes_branch#Roadmap_to_1.2 We would like to invite people to test the Lazarus 1.1.99 pre-release. You should treat this release with similar caution as the daily snapshots. If you wish to participate in the early testing, you should be prepared to backup and restore your data. If you do not feel experienced enough, please wait for the first release candidate in a couple of weeks. You can still join the testing then. News in this Version - http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes - On Windows the installer now allows 2 independent installations. http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus What we are looking for: - Crashes of the IDE - Crashes of your app, provided identical code works flawless, when compiled with the official Lazarus 1.0 release or the official Lazarus 1.0.12 release. - Regressions compared to the official Lazarus 1.0 release or the official Lazarus 1.0.12 release. - Does your app behave different or unexpected, where it was working under the previous released Lazarus - Does the IDE react differently (disbehave) when you use it? Before reporting please check the release notes for any documented changes. http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#Changes_affecting_compatibility The 1.1.99 is built with fpc 2.6.2. The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the Lazarus 1.1.99 Alpha Prerelease directory. Minimum requirements: Windows: 98, 2k, XP, Vista, 7, 8 FreeBSD/Linux: gtk 2.8 or qt4.5 Mac OS X: 10.5, LCL only 32bit, non LCL apps can be 64bit The svn tag is http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_1_99pre For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at: ftp://freepascal.dfmk.hu/pub/lazarus/releases/ and later at (after some time for synchronization) http://michael-ep3.physik.uni-halle.de/Lazarus/releases/ and http://mirrors.iwi.me/lazarus/ Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac (or other BigEndian machine) users needed to test new Utf8StringOfChar code
Bart wrote: On 9/17/13, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Hans-Peter Diettrich wrote: I've missed part of this thread due to messages dropped at our gateway, but am currently trying to check on SPARC Linux. Here's the comple code for you: Code as posted plus your earlier event handler gives output as below: Testing: 2-byte codepoint: $C2 $A2 Expected Length = 8 Found Length= 8 Expected: $C2 $A2 $C2 $A2 $C2 $A2 $C2 $A2 Found : $C2 $A2 $C2 $A2 $C2 $A2 $C2 $A2 Success! Testing: 3-byte codepoint: $E2 $82 $AC Expected Length = 12 Found Length= 12 Expected: $E2 $82 $AC $E2 $82 $AC $E2 $82 $AC $E2 $82 $AC Found : $E2 $82 $AC $E2 $82 $AC $E2 $82 $AC $E2 $82 $AC Success! Testing: 4-byte codepoint: $F0 $A4 $AD $A2 Expected Length = 16 Found Length= 16 Expected: $F0 $A4 $AD $A2 $F0 $A4 $AD $A2 $F0 $A4 $AD $A2 $F0 $A4 $AD $A2 Found : $F0 $A4 $AD $A2 $F0 $A4 $AD $A2 $F0 $A4 $AD $A2 $F0 $A4 $AD $A2 Success! -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac (or other BigEndian machine) users needed to test new Utf8StringOfChar code
José Mejuto wrote: I had not fully checked you code, but I think you are coding always the UTF16 as little endian, and in big endian machines the UTF16 should be big endian also. I do not have a big endian machine in order to perform some tests. I generally have 32-bit big-endian systems available, but not necessarily with the most recent Lazarus and/or FPC so if in doubt it's safer to code a completely standalone example (i.e. as Bart did). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build IDE: Please specify a package name with --package=name
On Tue, 17 Sep 2013 20:40:00 -0300 Marcos Douglas m...@delfire.net wrote: Hi, I can't compile IDE using FPC 2.7.1 (see attachment error.png, please). The ENV original is: Lazarus 1.1 r42461 FPC 2.6.2 i386-win32-win32/win64 The fpc 2.7.1 has recently started the new unicode RTL. Please try a fpc 2.7.1 before 6. September. I changed IDE Options (see attachment, ideooptions.png) and I used Clean Up + Build All Strange is the Make path. Does not exists in FPC 2.7.1 ? Is correct makeskel.exe? No, that is a fpdoc tool. It must be a make.exe. You can use the make.exe of fpc 2.6.2. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac (or other BigEndian machine) users needed to test new Utf8StringOfChar code
El 17/09/2013 17:25, Bart escribió: I thought f performance when calling like Utf8StringOfChare(AnUtf8Char, 32768), This should perform better if Fill(D)Word can be used I think. Hello, Yes, it should, but you can place a check that if less than 64 bytes are used, do not call Fill(D)Word but use plain for..loop to fill the data. I'm quite sure that you will get a bit more speed. I had not fully checked you code, but I think you are coding always the UTF16 as little endian, and in big endian machines the UTF16 should be big endian also. In my coding (in this thread) there is no UTF16... Yes sorry... Age is killing me :) I saw the shr and the LEToN and inmediatly think in UTF16. Sorry. -- -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Add package
Hi All. I run into a Lazarus package install that I've had some months ago but on Win64. This time problem araises into my new Lazarus 1.0.12 in a Linux x86_64 box The package is Indy. The package compilation itself runs OK, no problem. It hes been compiled with -fPIC because it is used in a shared library. When rebuilding the IDE, the following messages are displayed: make: Entering directory `/usr/lib64/lazarus' /usr/bin/make -C ide idepkg make[1]: Entering directory `/usr/lib64/lazarus/ide' /usr/bin/make --assume-new=lazarus.pp lazarus OPT=' -O2 -g- -Xs @/home/sita/.lazarus/idemake.cfg -FU/home/sita/.lazarus/units/x86_64-linux/gtk2 -FE/home/sita/.lazarus/bin -o/home/sita/.lazarus/bin/lazarus' make[2]: Entering directory `/usr/lib64/lazarus/ide' /usr/bin/fpc -gl -Sci -dlclgtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux/gtk2 -Cg -Fl/usr/lib64/gcc/x86_64-suse-linux/4.7 -Fl/usr/local/lib64 -Fl/usr/local/lib -Flinclude -Fl/etc/ld.so.conf.d/*.conf -O2 -g- -Xs @/home/sita/.lazarus/idemake.cfg -FU/home/sita/.lazarus/units/x86_64-linux/gtk2 -FE/home/sita/.lazarus/bin -o/home/sita/.lazarus/bin/lazarus -dx86_64 lazarus.pp Free Pascal Compiler version 2.6.2 [2013/03/17] for x86_64 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling lazarus.pp PPU Loading /home/sources/packages/Indy10/lib/lib/x86_64-linux/IdStreamVCL.ppu PPU Source: IdStreamVCL.pas not found PPU Source: IdCompilerDefines.inc not found Recompiling IdStreamVCL, checksum changed for IdGlobal IdStream.pas(29,3) Fatal: Can not find unit IdStreamVCL used by IdStream. All units (*.o and *.ppu) have been compiled with the package itself and are visible in the ./lib/x86_64-linux folder I couldn't find something similar in the history. Antonio. . -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac (or other BigEndian machine) users needed to test new Utf8StringOfChar code
On 9/18/13, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Bart wrote: On 9/17/13, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Hans-Peter Diettrich wrote: I've missed part of this thread due to messages dropped at our gateway, but am currently trying to check on SPARC Linux. OK, so it works as expected. I will commit it then. Any optimizations can be added later. Please post them in the bugtracker, and (if have the rights) assign it to me. Everybody here thanks for the help. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tag code on Lazarus Wiki
Go to line 212 of the page's source /lili*code*AddArray*/code*, codeAddNull/code, codeAddX/code and codeAddY/code functions, codeSetText/code procedure Every function or reserverd word is marked with that tag... 2013/9/17 Bart bartjun...@gmail.com On 9/17/13, William Oliveira Ferreira bdexterholl...@gmail.com wrote: http://wiki.freepascal.org/Lazarus_1.2.0_release_notes#TComponentPropertyEditor_behavior_was_changed ) on Google Chrome and I saw that, when a text is in code tag, the text I don't see any code? tags in that lemma b.t.w. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- William de Oliveira Ferreira -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Add package
On Wed, 18 Sep 2013 12:09:50 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Hi All. I run into a Lazarus package install that I've had some months ago but on Win64. This time problem araises into my new Lazarus 1.0.12 in a Linux x86_64 box The package is Indy. The package compilation itself runs OK, no problem. It hes been compiled with -fPIC because it is used in a shared library. When rebuilding the IDE, the following messages are displayed: make: Entering directory `/usr/lib64/lazarus' /usr/bin/make -C ide idepkg make[1]: Entering directory `/usr/lib64/lazarus/ide' /usr/bin/make --assume-new=lazarus.pp lazarus OPT=' -O2 -g- -Xs @/home/sita/.lazarus/idemake.cfg -FU/home/sita/.lazarus/units/x86_64-linux/gtk2 -FE/home/sita/.lazarus/bin -o/home/sita/.lazarus/bin/lazarus' make[2]: Entering directory `/usr/lib64/lazarus/ide' /usr/bin/fpc -gl -Sci -dlclgtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux/gtk2 -Cg -Fl/usr/lib64/gcc/x86_64-suse-linux/4.7 -Fl/usr/local/lib64 -Fl/usr/local/lib -Flinclude -Fl/etc/ld.so.conf.d/*.conf -O2 -g- -Xs @/home/sita/.lazarus/idemake.cfg -FU/home/sita/.lazarus/units/x86_64-linux/gtk2 -FE/home/sita/.lazarus/bin -o/home/sita/.lazarus/bin/lazarus -dx86_64 lazarus.pp Free Pascal Compiler version 2.6.2 [2013/03/17] for x86_64 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling lazarus.pp PPU Loading /home/sources/packages/Indy10/lib/lib/x86_64-linux/IdStreamVCL.ppu PPU Source: IdStreamVCL.pas not found PPU Source: IdCompilerDefines.inc not found Recompiling IdStreamVCL, checksum changed for IdGlobal IdStream.pas(29,3) Fatal: Can not find unit IdStreamVCL used by IdStream. All units (*.o and *.ppu) have been compiled with the package itself and are visible in the ./lib/x86_64-linux folder I couldn't find something similar in the history. Last time I tried Indy it had some circular dependencies in units, which fpc had problems with. This can be remedied by compiling a second, sometimes a third time. Open the Indy package and use the Compile button to compile it three times. Then build the IDE. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Add package
Colved. Recompile indylaz with -Ur option Found trick in http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg18469.html -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tag code on Lazarus Wiki
On 18/09/2013 12:33, William Oliveira Ferreira wrote: Go to line 212 of the page's source /lili*code*AddArray*/code*, codeAddNull/code, codeAddX/code and codeAddY/code functions, codeSetText/code procedure Every function or reserverd word is marked with that tag... I'd suggest you change that to use syntaxhighlight (the same tag used for about every other code sample on the wiki)... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tag code on Lazarus Wiki
ow, I think I got now, sorry. 2013/9/18 Reinier Olislagers reinierolislag...@gmail.com On 18/09/2013 12:33, William Oliveira Ferreira wrote: Go to line 212 of the page's source /lili*code*AddArray*/code*, codeAddNull/code, codeAddX/code and codeAddY/code functions, codeSetText/code procedure Every function or reserverd word is marked with that tag... I'd suggest you change that to use syntaxhighlight (the same tag used for about every other code sample on the wiki)... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- William de Oliveira Ferreira -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Add package
On 2013-09-18 11:09, Antonio Fortuny wrote: The package is Indy. On a different subject. What is the latest Indy version that works with FPC? I have 10.5.8 here, is that the latest for FPC? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tag code on Lazarus Wiki
I tried your tip but not served as was expected because it creates a box for each TAG used in code. If I put each reserved word or function within this tag, each word is in a box with dotted outline. This tag you suggested serves for code blocks, but not when a reserved word is inserted into a sentence and expected a special highlight for the word 2013/9/18 William Oliveira Ferreira bdexterholl...@gmail.com ow, I think I got now, sorry. 2013/9/18 Reinier Olislagers reinierolislag...@gmail.com On 18/09/2013 12:33, William Oliveira Ferreira wrote: Go to line 212 of the page's source /lili*code*AddArray*/code*, codeAddNull/code, codeAddX/code and codeAddY/code functions, codeSetText/code procedure Every function or reserverd word is marked with that tag... I'd suggest you change that to use syntaxhighlight (the same tag used for about every other code sample on the wiki)... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- William de Oliveira Ferreira -- William de Oliveira Ferreira -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build IDE: Please specify a package name with --package=name
On Wed, 18 Sep 2013 12:23:11 -0300 Marcos Douglas m...@delfire.net wrote: [...] It must be a make.exe. You can use the make.exe of fpc 2.6.2. Ok. But why FPC 2.7.1 do not have make.exe? You need 2.6.2 to build 2.7.1 anyway. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Can Lazarus IDE debugger attach to already running process?
Hi, As the subject line says, can Lazarus IDE's debugger attach to a already running process? The running process is a program compiler earlier with Lazarus IDE. I know GDB [via CLI] can do this, but can you do it via the Lazarus IDE, so I have visual debugging? If one can, how do I do it? Reason I ask: In Delphi it is a common way to debug CGI applications. You define an infinite loop in the CGI app. Execute the CGI app via the web browser. The infinite loop then gives you a change to attach the Delphi debugger. You then modify the variable of the infinite loop so it exits the loop. You can then step through the CGI application like any normal GUI or Console app. This is much easier than debugging with log files etc. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 18/09/2013 16:49, Graeme Geldenhuys wrote: Hi, As the subject line says, can Lazarus IDE's debugger attach to a already running process? The running process is a program compiler earlier with Lazarus IDE. I know GDB [via CLI] can do this, but can you do it via the Lazarus IDE, so I have visual debugging? Yes it can, but you mus know the PID. Lazarus will just ask for the pid. Open the project, so you have the sources, then in the run menu you find the attach command. It will take 2 or 3 secs, and then popup an input for the pid If one can, how do I do it? Reason I ask: In Delphi it is a common way to debug CGI applications. You define an infinite loop in the CGI app. Execute the CGI app via the web browser. The infinite loop then gives you a change to attach the Delphi debugger. You then modify the variable of the infinite loop so it exits the loop. You can then step through the CGI application like any normal GUI or Console app. This is much easier than debugging with log files etc. If you use an integer var, you can modify it from the IDE. Do not modify managed types -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 18/09/2013 18:11, Graeme Geldenhuys wrote: On 2013-09-18 16:54, Sven Barth wrote: According to http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes current 1.1 versions support attaching to a running process. Never used it yet though. OK thanks. I found it under the Run menu but couldn't get it to work. In the mean time I'm continuing to use DDD to achieve what I want - but obviously I would much prefer to do the debugging in Lazarus IDE (more familiar ground to me). What went wrong? I use it plenty of time. (on w32 vista). I use it to attach to desktop apps though. But it should make no difference. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On Wednesday 18 September 2013 17:49:23 Graeme Geldenhuys wrote: Hi, As the subject line says, can Lazarus IDE's debugger attach to a already running process? The running process is a program compiler earlier with Lazarus IDE. I know GDB [via CLI] can do this, but can you do it via the Lazarus IDE, so I have visual debugging? If one can, how do I do it? Instead of using DDD, in MSEide it is 'Target'-'Attach Process'. Hmm, I need to fix the captions of the process ID dialog... Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 2013-09-18 16:54, Sven Barth wrote: According to http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes current 1.1 versions support attaching to a running process. Never used it yet though. OK thanks. I found it under the Run menu but couldn't get it to work. In the mean time I'm continuing to use DDD to achieve what I want - but obviously I would much prefer to do the debugging in Lazarus IDE (more familiar ground to me). Note to others that want to try this: - If you want to debug the CGI app under Linux, you must be root user to attach to the process. On my system the CGI app is run as the 'www' user. - in GDB, Boolean variable values are set as 0 or 1 (not 'true' or 'false') - When GDB attaches to another process, it immediately stops the other process, so you must use the 'continue' command to start it again. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 18.09.2013 17:49, Graeme Geldenhuys wrote: Hi, As the subject line says, can Lazarus IDE's debugger attach to a already running process? The running process is a program compiler earlier with Lazarus IDE. I know GDB [via CLI] can do this, but can you do it via the Lazarus IDE, so I have visual debugging? If one can, how do I do it? According to http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes current 1.1 versions support attaching to a running process. Never used it yet though. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build IDE: Please specify a package name with --package=name
On Wed, Sep 18, 2013 at 12:40 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Wed, 18 Sep 2013 12:23:11 -0300 Marcos Douglas m...@delfire.net wrote: [...] It must be a make.exe. You can use the make.exe of fpc 2.6.2. Ok. But why FPC 2.7.1 do not have make.exe? You need 2.6.2 to build 2.7.1 anyway. I already have the FPC 2.7.1 compiled using the last stable version (but the make.exe wasn't created I don't know why)... but this is not the problem. Did you see the printscreen before? Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 18/09/13 21:14, patspiper wrote: On 18/09/13 21:01, Martin wrote: On 18/09/2013 19:00, patspiper wrote: I tried to attach to an external process (Ubuntu 11.04) and (Ooops) the debugger entered the error state; Attach failed. This happens whether the process is a Lazarus compiled app or other. Lazarus 1.3 r42849 FPC 2.6.3 i386-linux-gtk 2 I am not sure if Graeme has the same symptoms or not. Can you sent me a log: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#gdb.exe_has_stopped_working Log: =thread-group-added,id=i1 (gdb) -gdb-set confirm off ^done (gdb) -gdb-set new-console off ^error,msg=No symbol table is loaded. Use the \file\ command. (gdb) set width 5 set width 5\n ^done (gdb) -gdb-version ~GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2\n ~Copyright (C) 2010 Free Software Foundation, Inc.\n ~License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \show copying\\nand \show warranty\ for details.\n ~This GDB was configured as \i686-linux-gnu\.\nFor bug reporting instructions, please see:\n ~http://www.gnu.org/software/gdb/bugs/.\n ^done (gdb) -file-exec-and-symbols /home/deleteme/project1 ^done (gdb) -file-exec-and-symbols ^done (gdb) -gdb-set language pascal ^done (gdb) attach 9149 attach 9149\n Could not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\n ptrace: Operation not permitted.\n ^error,msg=ptrace: Operation not permitted. (gdb) detach detach\n The program is not being run.\n ^error,msg=The program is not being run. (gdb) kill In 10-ptrace.conf: kernel.yama.ptrace_scope = 1 A scope of 1 limits # PTRACE only to direct child processes (e.g. gdb name-of-program and # strace -f name-of-program work, but gdb's attach and strace -fp $PID # do not) which essentially explains why the debugger fails to attach to the process. Stephano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 18/09/13 20:32, Martin wrote: On 18/09/2013 18:11, Graeme Geldenhuys wrote: On 2013-09-18 16:54, Sven Barth wrote: According to http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes current 1.1 versions support attaching to a running process. Never used it yet though. OK thanks. I found it under the Run menu but couldn't get it to work. In the mean time I'm continuing to use DDD to achieve what I want - but obviously I would much prefer to do the debugging in Lazarus IDE (more familiar ground to me). What went wrong? I tried to attach to an external process (Ubuntu 11.04) and (Ooops) the debugger entered the error state; Attach failed. This happens whether the process is a Lazarus compiled app or other. Lazarus 1.3 r42849 FPC 2.6.3 i386-linux-gtk 2 I am not sure if Graeme has the same symptoms or not. Stephano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 18/09/2013 19:00, patspiper wrote: On 18/09/13 20:32, Martin wrote: On 18/09/2013 18:11, Graeme Geldenhuys wrote: On 2013-09-18 16:54, Sven Barth wrote: According to http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes current 1.1 versions support attaching to a running process. Never used it yet though. OK thanks. I found it under the Run menu but couldn't get it to work. In the mean time I'm continuing to use DDD to achieve what I want - but obviously I would much prefer to do the debugging in Lazarus IDE (more familiar ground to me). What went wrong? I tried to attach to an external process (Ubuntu 11.04) and (Ooops) the debugger entered the error state; Attach failed. This happens whether the process is a Lazarus compiled app or other. Lazarus 1.3 r42849 FPC 2.6.3 i386-linux-gtk 2 I am not sure if Graeme has the same symptoms or not. Can you sent me a log: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#gdb.exe_has_stopped_working -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 18/09/13 21:01, Martin wrote: On 18/09/2013 19:00, patspiper wrote: I tried to attach to an external process (Ubuntu 11.04) and (Ooops) the debugger entered the error state; Attach failed. This happens whether the process is a Lazarus compiled app or other. Lazarus 1.3 r42849 FPC 2.6.3 i386-linux-gtk 2 I am not sure if Graeme has the same symptoms or not. Can you sent me a log: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#gdb.exe_has_stopped_working Log: =thread-group-added,id=i1 (gdb) -gdb-set confirm off ^done (gdb) -gdb-set new-console off ^error,msg=No symbol table is loaded. Use the \file\ command. (gdb) set width 5 set width 5\n ^done (gdb) -gdb-version ~GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2\n ~Copyright (C) 2010 Free Software Foundation, Inc.\n ~License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \show copying\\nand \show warranty\ for details.\n ~This GDB was configured as \i686-linux-gnu\.\nFor bug reporting instructions, please see:\n ~http://www.gnu.org/software/gdb/bugs/.\n ^done (gdb) -file-exec-and-symbols /home/deleteme/project1 ^done (gdb) -file-exec-and-symbols ^done (gdb) -gdb-set language pascal ^done (gdb) attach 9149 attach 9149\n Could not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\n ptrace: Operation not permitted.\n ^error,msg=ptrace: Operation not permitted. (gdb) detach detach\n The program is not being run.\n ^error,msg=The program is not being run. (gdb) kill Stephano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 2013-09-18 18:46, Martin Schreiber wrote: Instead of using DDD, in MSEide it is 'Target'-'Attach Process'. Excellent, thanks Martin! Will give it a try. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 2013-09-18 18:32, Martin wrote: What went wrong? The whole IDE froze up - I was using it under FreeBSD 9.1 (64-bit) with LCL-GTK2 compiled IDE. I tried as my normal user first, then noticed the security issue of attaching to a process I don't own. I then copied the .lazarus/ directory to the /root/ directory and tried Lazarus IDE as the root. Same outcome as before. I use it plenty of time. (on w32 vista). I use it to attach to desktop apps though. But it should make no difference. Once you press the OK button on the enter process ID dialog, what steps do you follow then? Set a breakpoint and press the Play (green triangle) button? I'll try it again under Windows (32-bit) tonight. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 2013-09-18 19:00, patspiper wrote: I tried to attach to an external process (Ubuntu 11.04) and (Ooops) the debugger entered the error state; Attach failed. Ah yes, I had that one too - as my normal user. I deduced it was because I didn't own the process I was trying to debug. The IDE froze as the root user. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 2013-09-18 18:30, Martin wrote: If you use an integer var, you can modify it from the IDE. Do not modify managed types OK, thanks for that tip. Once I get it working, I'll update the CGI Web Programming [http://wiki.freepascal.org/CGI_Web_Programming] wiki page on the alternative way to debugging CGI apps. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 18/09/2013 19:52, Graeme Geldenhuys wrote: On 2013-09-18 18:32, Martin wrote: What went wrong? The whole IDE froze up After orl before you enter the PID/ Can it be that the PID input win was (due to the gck focus/window z order issues) hidden? It is modal, so the rest of the IDE would seem froozen. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 18/09/2013 20:03, Martin wrote: On 18/09/2013 19:52, Graeme Geldenhuys wrote: On 2013-09-18 18:32, Martin wrote: What went wrong? The whole IDE froze up After orl before you enter the PID/ Can it be that the PID input win was (due to the gck focus/window z order issues) hidden? It is modal, so the rest of the IDE would seem froozen. Actually, if you got to the permission error before, then you would be past the pid. Maybe it needs a diff setting for the gdb scheduler locking, if you debug something in the webserver? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build IDE: Please specify a package name with --package=name
On Wed, 18 Sep 2013 13:16:55 -0300 Marcos Douglas m...@delfire.net wrote: On Wed, Sep 18, 2013 at 12:40 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Wed, 18 Sep 2013 12:23:11 -0300 Marcos Douglas m...@delfire.net wrote: [...] It must be a make.exe. You can use the make.exe of fpc 2.6.2. Ok. But why FPC 2.7.1 do not have make.exe? You need 2.6.2 to build 2.7.1 anyway. I already have the FPC 2.7.1 compiled using the last stable version (but the make.exe wasn't created I don't know why)... make.exe is a third party program, which is shipped with the installer. but this is not the problem. Did you see the printscreen before? I use Windows only casually. Maybe some Windows devel can you help you. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build IDE: Please specify a package name with --package=name
On Wed, Sep 18, 2013 at 5:32 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Wed, 18 Sep 2013 13:16:55 -0300 Marcos Douglas m...@delfire.net wrote: On Wed, Sep 18, 2013 at 12:40 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Wed, 18 Sep 2013 12:23:11 -0300 Marcos Douglas m...@delfire.net wrote: [...] It must be a make.exe. You can use the make.exe of fpc 2.6.2. Ok. But why FPC 2.7.1 do not have make.exe? You need 2.6.2 to build 2.7.1 anyway. I already have the FPC 2.7.1 compiled using the last stable version (but the make.exe wasn't created I don't know why)... make.exe is a third party program, which is shipped with the installer. but this is not the problem. Did you see the printscreen before? I use Windows only casually. Maybe some Windows devel can you help you. Ok, thank you. Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?
On 2013-09-18 20:03, Martin wrote: After orl before you enter the PID/ Can it be that the PID input win was (due to the gck focus/window z No, I saw the PID input window just fine. The freeze-up occurred after I entered the PID and clicked OK. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus