,frame and related commands handle for-trap? appropriately
authorAndy Wingo <wingo@pobox.com>
Tue, 12 Oct 2010 11:24:46 +0000 (13:24 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 12 Oct 2010 11:24:46 +0000 (13:24 +0200)
commit5aa12c699c126e5880649223dba94e6b0ef730b9
tree78b0da92470f5066dc1e2e4e2a957f357eff354d
parent5414d33376e7759dfc5e4e35d32b5c8cf2452930
,frame and related commands handle for-trap? appropriately

* module/system/repl/debug.scm (print-frame): Add #:next-source? arg,
  for when print-frame should use frame-next-source instead of
  frame-source.
  (print-frames): Add #:for-trap? arg. If true, the 0th frame should be
  printed with frame-next-source.

* module/system/repl/command.scm (define-stack-command): Introduce
  for-trap? into the lexical env.
  (backtrace, up, down, frame): Update to do the right thing regarding
  #:for-trap?.
module/system/repl/command.scm
module/system/repl/debug.scm