start cleaning up repl/debugger error handling
authorAndy Wingo <wingo@pobox.com>
Thu, 10 Jun 2010 11:30:55 +0000 (13:30 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 10 Jun 2010 12:15:26 +0000 (14:15 +0200)
commitb93c34c0ca282a7d261f9de7326274fbb3b03774
tree920b8ab5dff4b4a67749bb7203c1ca8473947365
parent11da3f2bd6793e3241f3083a2f12d8b8167caf0e
start cleaning up repl/debugger error handling

* module/system/repl/repl.scm (prompting-meta-read): Catch and print
  read errors here, returning unspecified in that case.
  (start-repl): Don't enable the debugger while reading expressions.
  Adapt with-backtrace to with-error-handling.

* module/system/vm/debug.scm (run-debugger, debugger-repl): No need to
  take a stack, the frames vector is sufficient.
  (call-with-error-handling, with-error-handling): New public utilities.
  Notably they do not poke the-last-stack.
module/system/repl/repl.scm
module/system/vm/debug.scm