mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 21:40:33 +02:00
Fix trap frame matching
* module/system/vm/traps.scm (program-last-ip): Actually return an absolute IP. Fixes traps!
This commit is contained in:
parent
77cfd7e4bf
commit
374b88580c
1 changed files with 3 additions and 1 deletions
|
@ -110,7 +110,9 @@
|
|||
;; Returns an absolute IP.
|
||||
(define (program-last-ip prog)
|
||||
(let ((pdi (find-program-debug-info (program-code prog))))
|
||||
(and pdi (program-debug-info-size pdi))))
|
||||
(and pdi
|
||||
(+ (program-debug-info-addr pdi)
|
||||
(program-debug-info-size pdi)))))
|
||||
|
||||
(define (frame-matcher proc)
|
||||
(let ((proc (if (struct? proc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue