From: Jan Nieuwenhuizen <janneke@gnu.org>
To: guile-devel <guile-devel@gnu.org>, emacs-devel <emacs-devel@gnu.org>
Subject: Initial GUD integration for Guile
Date: Tue, 5 Aug 2014 15:21:44 +0200 [thread overview]
Message-ID: <1407244906-12754-1-git-send-email-janneke@gnu.org> (raw)
From Jan Nieuwenhuizen <janneke@gnu.org> # This line is ignored.
Subject: Initial GUD support for Guile
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-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=c99 -o gud-break gud-break.c
gdb gud-break, or using GUD: M-x gdb RET gud-break RET
b main
r
n
RET # repeats last command: `n'
...
*/
#include <stdio.h>
int
main ()
{
fprintf (stderr, "%s:%d:hello world\n", __FILE__, __LINE__);
{
int a;
int b;
a = 1;
fprintf (stderr, "set: a=%d\n", a);
b = 2;
fprintf (stderr, "set: b=%d\n", b);
{
int c;
int d;
c = 3;
fprintf (stderr, "set: c=%d\n", c);
d = 4;
fprintf (stderr, "set: d=%d\n", d);
}
fprintf (stderr, "%s:%d:leaving...\n", __FILE__, __LINE__);
}
fprintf (stderr, "%s:%d:goodbye world\n", __FILE__, __LINE__);
}
--- end
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl
next reply other threads:[~2014-08-05 13:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-05 13:21 Jan Nieuwenhuizen [this message]
2014-08-05 13:21 ` [PATCH] Initial GUD integration support Jan Nieuwenhuizen
2014-08-05 13:21 ` [PATCH] Initial Guile REPL (guiler) debugger support for GUD Jan Nieuwenhuizen
2014-08-09 15:35 ` Stefan Monnier
2014-08-09 16:10 ` Jan Nieuwenhuizen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1407244906-12754-1-git-send-email-janneke@gnu.org \
--to=janneke@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).