add ,step ,stepi ,next and ,nexti
authorAndy Wingo <wingo@pobox.com>
Wed, 6 Oct 2010 19:19:08 +0000 (21:19 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 6 Oct 2010 19:19:08 +0000 (21:19 +0200)
commit439e032b0b04ddc96b0abcdcf73a4d9cf67316ee
tree4072a3cac401ab75e2d77de9b2474242ef574c5c
parente8e4e7310c7c3964e4a6c19f154c3b341974eac7
add ,step ,stepi ,next and ,nexti

* module/system/vm/traps.scm (trap-matching-instructions): New trap,
  just installs a next hook and runs the handler when a predicate
  succeeds.

* module/system/vm/trap-state.scm (add-ephemeral-stepping-trap!): New
  procedure, uses trap-matching-instructions with an appropriate
  predicate to handle step, stepi, next, and nexti repl metacommands.

* module/system/repl/command.scm (step, step-instruction, next)
  (next-instruction): New repl debugger commands.
module/system/repl/command.scm
module/system/vm/trap-state.scm
module/system/vm/traps.scm