mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-19 18:20:22 +02:00
Program sources are always pre-retire now
* module/system/repl/debug.scm (<debug>): Remove for-trap?. Backtraces with RTL will always happen pre-retire on the top frame, source info is pre-retire, and continuations will always have a source-marked receive or receive-values or whatever with the right source marking, so we can remove this complication. (print-frame): Use frame-source. (print-frames): Remove for-trap? kw. * module/system/repl/command.scm (define-stack-command, backtrace) (up, down, frame): Remove for-trap? introduced local, and its uses. (repl-pop-continuation-resumer): Adapt to make-debug change. * module/system/repl/error-handling.scm (call-with-error-handling): Adapt to make-debug change. * module/system/vm/frame.scm (frame-next-source): Remove. RTL sources are pre-retire. * module/system/vm/trap-state.scm (add-ephemeral-stepping-trap!): Adapt to use frame-source. Still some work to do here.
This commit is contained in:
parent
0128bb9c38
commit
e15aa02284
5 changed files with 23 additions and 43 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; trap-state.scm: a set of traps
|
||||
|
||||
;; Copyright (C) 2010 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2010, 2013 Free Software Foundation, Inc.
|
||||
|
||||
;;; This library is free software; you can redistribute it and/or
|
||||
;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -275,13 +275,13 @@
|
|||
(and (<= (frame-address f) fp)
|
||||
(predicate f))))))
|
||||
|
||||
(let* ((source (frame-next-source frame))
|
||||
(let* ((source (frame-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-next-source f) source)))))
|
||||
(lambda (f) (not (equal? (frame-source f) source)))))
|
||||
(ephemeral-handler-for-index trap-state idx handler))))
|
||||
(add-trap-wrapper!
|
||||
trap-state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue