1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Fix display of complex local data types in GDB-MI

* lisp/progmodes/gdb-mi.el (gdb-locals-handler-custom): If a
variable has no value, display "<complex data type>" as a
placeholder, instead of a confusing "nil".  (Bug#21438)
This commit is contained in:
Eli Zaretskii 2015-09-09 18:56:06 +03:00
parent 765dcc709c
commit 17fff76fea

View file

@ -4038,6 +4038,8 @@ member."
(let ((name (bindat-get-field local 'name))
(value (bindat-get-field local 'value))
(type (bindat-get-field local 'type)))
(when (not value)
(setq value "<complex data type>"))
(if (or (not value)
(string-match "\\0x" value))
(add-text-properties 0 (length name)