From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.emacs.devel,gmane.lisp.guile.devel Subject: Initial GUD integration for Guile Date: Tue, 5 Aug 2014 15:21:44 +0200 Message-ID: <1407244906-12754-1-git-send-email-janneke@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1407245073 8393 80.91.229.3 (5 Aug 2014 13:24:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2014 13:24:33 +0000 (UTC) To: guile-devel , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 05 15:24:27 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XEej5-00009G-Ar for ged-emacs-devel@m.gmane.org; Tue, 05 Aug 2014 15:24:27 +0200 Original-Received: from localhost ([::1]:59443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEej4-0001RO-Oj for ged-emacs-devel@m.gmane.org; Tue, 05 Aug 2014 09:24:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEeix-0001PY-6T for emacs-devel@gnu.org; Tue, 05 Aug 2014 09:24:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEeir-0007r9-4L for emacs-devel@gnu.org; Tue, 05 Aug 2014 09:24:19 -0400 Original-Received: from smtp-vbr7.xs4all.nl ([194.109.24.27]:3894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEeiq-0007q8-RF; Tue, 05 Aug 2014 09:24:13 -0400 Original-Received: from drakenvlieg.flower (static.kpn.net [92.70.116.82] (may be forged)) (authenticated bits=0) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id s75DMTE8092629 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 5 Aug 2014 15:23:55 +0200 (CEST) (envelope-from janneke@gnu.org) X-Mailer: git-send-email 1.9.1 X-Virus-Scanned: by XS4ALL Virus Scanner X-MIME-Autoconverted: from 8bit to quoted-printable by smtp-vbr7.xs4all.nl id s75DMTE8092629 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 194.109.24.27 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173434 gmane.lisp.guile.devel:17304 Archived-At: >From Jan Nieuwenhuizen # This line is ignored. Subject: Initial GUD support for Guile MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit Hi, Here is an experimental patch for Guile to support GUD integration. It features a more friendly (more gdb-like) debug prompt for breakpoints and stepping. It has some rough edges, hopefully I overlooked some simple things that can help clean it up. Following is also its counterpart, a patch for Emacs' Grand Unified Debugger (GUD). I'm including gud-break.c that matches examples/gud-break.scm for GUD (guile/gdb) operation comparison. What do you think? (There are of course more goodies to wish for after we can agree upon an initial integration). Greetings, Jan --- gud-break.c /* Comparing GDB/GUD with experimental Guile/GUD support for Guile REPL gcc -g --std=3Dc99 -o gud-break gud-break.c=20 gdb gud-break, or using GUD: M-x gdb RET gud-break RET b main r n RET # repeats last command: `n' ... */ #include int main () { fprintf (stderr, "%s:%d:hello world\n", __FILE__, __LINE__); { int a; int b; a =3D 1; fprintf (stderr, "set: a=3D%d\n", a); b =3D 2; fprintf (stderr, "set: b=3D%d\n", b); { int c; int d; c =3D 3; fprintf (stderr, "set: c=3D%d\n", c); d =3D 4; fprintf (stderr, "set: d=3D%d\n", d); } fprintf (stderr, "%s:%d:leaving...\n", __FILE__, __LINE__); } fprintf (stderr, "%s:%d:goodbye world\n", __FILE__, __LINE__); } --- end --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.= nl =20