From: Eli Zaretskii Date: Wed, 9 Sep 2015 15:56:06 +0000 (+0300) Subject: Fix display of complex local data types in GDB-MI X-Git-Tag: emacs-25.0.90~1224^2~181 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=17fff76fea2b15a52d03f74d2dedbaec58330a4f;p=emacs.git 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 "" as a placeholder, instead of a confusing "nil". (Bug#21438) --- diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 1eff62c5acf..3860c81065d 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -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 "")) (if (or (not value) (string-match "\\0x" value)) (add-text-properties 0 (length name)