]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix display of complex local data types in GDB-MI
authorEli Zaretskii <eliz@gnu.org>
Wed, 9 Sep 2015 15:56:06 +0000 (18:56 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 9 Sep 2015 15:56:06 +0000 (18:56 +0300)
* 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)

lisp/progmodes/gdb-mi.el

index 1eff62c5acf0ad140a163f1b8924cbb528008b32..3860c81065d59ea0c8cac3a6d4c449696b640eac 100644 (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)