mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
gdb: Avoid accessing values that are optimized out.
* libguile/libguile-3.0-gdb.scm (vm-frame-function-name)[ip-in-symbol?]: Do not access SYM's value when it's optimized out.
This commit is contained in:
parent
a0aa8f01cc
commit
5d715dd467
1 changed files with 1 additions and 0 deletions
|
@ -297,6 +297,7 @@ if the information is not available."
|
|||
(define (ip-in-symbol? name)
|
||||
(let ((sym (lookup-symbol-or-false name)))
|
||||
(and sym
|
||||
(not (value-optimized-out? (symbol-value sym)))
|
||||
(let* ((val (symbol-value sym))
|
||||
(size (type-sizeof (value-type val)))
|
||||
(char* (type-pointer (arch-char-type (current-arch))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue