[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Backtraces in modules?

From: Han-Wen Nienhuys
Subject: Backtraces in modules?
Date: Tue, 03 May 2005 12:56:28 +0200
User-agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324)

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)

then I get

  Calculating line breaks... [2]ERROR: Unbound variable: foobar

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 - address@hidden -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]