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:
parent
765dcc709c
commit
17fff76fea
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue