> "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."
@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
":
#! /bin/sh
gdb \
-ex 'handle SIGXCPU nostop' \
-ex 'handle SIGPWR nostop' \
-ex 'run' \
--args \
guile "${@}";
To run it, I simply type
./gdb-guile.sh my-program.scm --args=to --my=program
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
".
@ramin_hal9001 thanks a lot. will try today or tomorrow morning