Trying to figure out how to work with #guile #scheme in #gdb (gnu debugger) today for the most part of the day. Investigating sigsegv error in the scheme project of mine. Found no examples.
As far as I've got #gdb has integration with guile but it only allows to extend itself with guile, not call guile programs with ease and repl inside gdb... Maybe I am wrong. Continue research.
@shegeley you should probably install the developer build of Guile, something like "
guile-3.0-dev
" in the Debian (and derivative) Linux repositories.Then what I do is actually run the whole Guile interpreter in GDB. Here is a script I use, I call it "
gdb-guile.sh
":To run it, I simply type
If you use Emacs and Geiser, you can try setting the "
geiser-guile-binary
" variable to the full path of "gdb-guile.sh
", I ususally set it in my ".dir-locals.el
".@shegeley you should probably install the developer build of Guile, something like "
guile-3.0-dev
" in the Debian (and derivative) Linux repositories.