1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 05:50:26 +02:00

stepping traps use frame-next-source, not frame-source

* module/system/vm/trap-state.scm (add-ephemeral-stepping-trap!): Use
  frame-next-source in stepping traps.
This commit is contained in:
Andy Wingo 2010-10-08 12:23:34 +02:00
parent b262b74b51
commit 9b78275eb0

View file

@ -275,13 +275,13 @@
(and (<= (frame-address f) fp)
(predicate f))))))
(let* ((source (frame-source frame))
(let* ((source (frame-next-source frame))
(idx (next-ephemeral-index! trap-state))
(trap (trap-matching-instructions
(wrap-predicate-according-to-into
(if instruction?
(lambda (f) #t)
(lambda (f) (not (equal? (frame-source f) source)))))
(lambda (f) (not (equal? (frame-next-source f) source)))))
(ephemeral-handler-for-index trap-state idx handler))))
(add-trap-wrapper!
trap-state