emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 17fff76: Fix display of complex local data types in


From: Eli Zaretskii
Subject: [Emacs-diffs] master 17fff76: Fix display of complex local data types in GDB-MI
Date: Wed, 09 Sep 2015 15:57:00 +0000

branch: master
commit 17fff76fea2b15a52d03f74d2dedbaec58330a4f
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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)
---
 lisp/progmodes/gdb-mi.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 1eff62c..3860c81 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 "<complex data type>"))
         (if (or (not value)
                 (string-match "\\0x" value))
             (add-text-properties 0 (length name)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]