From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e36020a4e7d24836 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!fu-berlin.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Emacs vs GPS vs Eclipse, Ada vs Lisp vs Lua vs Java Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <87zkp4uhjl.fsf@ludovic-brenta.org> <82mxl2yq9j.fsf_-_@stephe-leake.org> <82vczowlcz.fsf@stephe-leake.org> Date: Sat, 12 Mar 2011 16:23:12 +0100 Message-ID: <4wxehmr0odbn.so98kpo0i6do.dlg@40tude.net> NNTP-Posting-Date: 12 Mar 2011 16:23:05 CET NNTP-Posting-Host: 8febdc0b.newsspool1.arcor-online.net X-Trace: DXC=EkP7c2VSK5B@Y=h<_c3PkHic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgBZFm4oJHSm]J[6LHn;2LCVN[ On Sat, 12 Mar 2011 07:53:48 -0500, Stephen Leake wrote: > "Dmitry A. Kazakov" writes: > >> On Fri, 11 Mar 2011 04:12:40 -0500, Stephen Leake wrote: >> >>> Last I checked, GPS doesn't do VHDL, LaTeX, Maxima, Matlab, bash mode, >>> make mode, monotone, read/send mail; all tools I need in my integrated >>> development environment. >> >> What about retouching private album photos and ripping CDs? > > No, I don't expect Emacs to do that. But I wouldn't be surprised if > there is a mode that does! > > Are you saying GPS supports that? No, I wondered why it should. I don't want a mail-sending IDE. >>> If GPS can do dynamically loaded Ada with source-code debugging, that >>> would be a huge selling point. >> [...] >>> Apparently Java is used this way in Eclipse; does that have source-code >>> debugging for dynamically loaded subprograms? >> >> You can start GPS in a command mode listening for connections from the >> program being debugged and navigate the project sources from there. (It is >> a huge help when debugging GtkAda applications.) You can walk the call >> stack from an exception handler or at any point you wanted, without messing >> up with gdb (which does not work anyway). > > I gather you are saying you can use one GPS instance to debug the Ada > code in another GPS instance. No, I mean that you can communicate to GPS from your Ada program, e.g. while debugging it. > That makes sense; in this mode, GPS is a > front-end for gdb. Emacs can do the same thing. gdb is garbage. But even if there were a decent debugger for GNAT, you may want to have some tracing tool. GPS gives you an opportunity to browse the sources while tracing. > But I have debugged GtkAda programs at that level, and it is not nearly > as productive (for the task of implementing simple GUIs for programmer > tools) as the Emacs environment. Mostly because the edit/compile/test > cycle for a single subprogram is much faster in the Emacs environment. I am not sure how it can be faster than in GPS: F4, shift+F2. Debugging GtkAda with gdb cannot work, because GTK does not use exceptions to indicate errors. Also if you stop GTK in an unfortunate state, you would corrupt GUI in a way unrelated to the original problem. It is similar to real-time applications, which break when stepped. Tracing works much better and an ability to ask GPS to show the source where the message came from is a great help. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de