mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
'frame-matcher' doesn't crash when the last IP is unknown.
This fixes a bug when using ",break": system/vm/traps.scm:127:31: system/vm/traps.scm:127:31: In procedure <: Wrong type: #f * module/system/vm/traps.scm (frame-matcher): Check whether END is true.
This commit is contained in:
parent
a74d4ee4f6
commit
bf060d2aff
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; Traps: stepping, breakpoints, and such.
|
||||
|
||||
;; Copyright (C) 2010, 2012, 2013, 2014 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2010, 2012, 2013, 2014, 2017 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
|
||||
|
@ -124,7 +124,8 @@
|
|||
(end (program-last-ip proc)))
|
||||
(lambda (frame)
|
||||
(let ((ip (frame-instruction-pointer frame)))
|
||||
(and (<= start ip) (< ip end))))))
|
||||
(and (<= start ip)
|
||||
end (< ip end))))))
|
||||
((struct? proc)
|
||||
(frame-matcher (procedure proc)))
|
||||
(else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue