fix backtraces with compiled boot-9
authorAndy Wingo <wingo@pobox.com>
Tue, 26 May 2009 19:47:45 +0000 (21:47 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 26 May 2009 19:51:42 +0000 (21:51 +0200)
commit1351c2dba5ce54aeeae41cb2322ad39cd29510b0
tree1cd519c507db104e9425ae2a6a4491ef56ba8c7e
parent9d07bb7276d1be078c5933645897694035ecdcfe
fix backtraces with compiled boot-9

* module/ice-9/boot-9.scm (default-pre-unwind-handler): Since we were
  tail-called by pre-unwind-handler-dispatch, we can't use
  pre-unwind-handler-dispatch as a narrowing argument. Instead just
  narrow by one frame.
  (pre-unwind-handler-dispatch): Deprecate.
  (error-catching-loop): Remove crack comment and code, and just use
  default-pre-unwind-handler as our pre-unwind handler.

* module/ice-9/stack-catch.scm (stack-catch):
* module/system/repl/repl.scm (call-with-backtrace): Use
  default-pre-unwind-handler directly.
module/ice-9/boot-9.scm
module/ice-9/stack-catch.scm
module/system/repl/repl.scm