* Backtraces in modules?
@ 2005-05-03 10:56 Han-Wen Nienhuys
2005-05-04 18:22 ` Andy Wingo
0 siblings, 1 reply; 2+ messages in thread
From: Han-Wen Nienhuys @ 2005-05-03 10:56 UTC (permalink / raw)
Hi there,
I have trouble getting backtraces in code evalled within loaded
modules. I do
String mod_nm = "scm framework-" + output_backend_global;
SCM mod = scm_c_resolve_module (mod_nm.to_str0 ());
if (make_print)
{
SCM func = scm_c_module_lookup (mod, "output-framework");
func = scm_variable_ref (func);
scm_apply_0 (func, .. )
iow. I load the scm/framework-foo.scm module, which contains
(define-public (output-framework basename book scopes fields)
(debug-enable 'backtrace)
(foobar)
then I get
Calculating line breaks... [2]ERROR: Unbound variable: foobar
muurbloem:~/src/lilypond$
how do I get a stack trace? I've traced the problem to scm_make_stack(),
which cannot construct a frame, since scm_i_last_debug_frame() returns 0x0.
any pointers?
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-04 18:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-03 10:56 Backtraces in modules? Han-Wen Nienhuys
2005-05-04 18:22 ` Andy Wingo
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).