From: William Morgan <wmorgan@masanjin.net>
Subject: Re: wrong-type-arg in scm_display_backtrace
Date: Wed, 8 Jan 2003 17:38:47 -0500 [thread overview]
Message-ID: <20030108223847.GA6983@masanjin.net> (raw)
In-Reply-To: <m3el7nie9r.fsf@laruns.ossau.uklinux.net>
Excerpts (reformatted) from Neil Jerram's mail of 8 Jan 2003 (EST):
> Are you running with the debugging evaluator?
Ah hah! This was the key. In my invocation of scm_init_guile(), I write:
scm_init_guile();
SCM_DEVAL_P = 1;
SCM_BACKTRACE_P = 1;
SCM_RECORD_POSITIONS_P = 1;
SCM_RESET_DEBUG_MODE;
and now I have backtraces. Yes!!! Now, I just have to figure out how to use
vports to steal the backtrace dump and put it somewhere intelligent...
Having finally succeeded, I have a couple comments:
1) The commands above are wicked voodoo that should be encapsulated in
some kind of scm_enable_debugging() library call. There's no way I,
as the application developer, should be playing with these variables
directly.
2) This whole process has been unnecessarily difficult, considering that
I am doing *only* and *exactly* what anyone who wants to embed Guile
in their program must do (run Guile callbacks, catch errors, display
errors nicely).
Issue #2, at least, is mostly a matter of lack of documentation. I
promise to write up a "how to embed Guile in your C program" document
and post it here.
Thank you, Neil, for all of your help.
--
William <wmorgan@masanjin.net>
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2003-01-08 22:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-30 1:31 wrong-type-arg in scm_display_backtrace William Morgan
2002-12-31 23:42 ` Neil Jerram
2003-01-05 3:57 ` William Morgan
2003-01-06 19:06 ` Neil Jerram
2003-01-07 5:42 ` William Morgan
2003-01-08 20:21 ` Neil Jerram
2003-01-08 22:38 ` William Morgan [this message]
2003-01-09 23:42 ` Neil Jerram
2003-01-10 20:31 ` vports from c questions William Morgan
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/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030108223847.GA6983@masanjin.net \
--to=wmorgan@masanjin.net \
/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.
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).