>From Jan Nieuwenhuizen <jann...@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 <jann...@gnu.org> | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.nl