diff options
| author | Eli Zaretskii | 2015-09-09 18:56:06 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-09-09 18:56:06 +0300 |
| commit | 17fff76fea2b15a52d03f74d2dedbaec58330a4f (patch) | |
| tree | a708828e65f11b99029243382abaaaacd57e7011 | |
| parent | 765dcc709c6bbb0ae246e5f680daa585f3f53573 (diff) | |
| download | emacs-17fff76fea2b15a52d03f74d2dedbaec58330a4f.tar.gz emacs-17fff76fea2b15a52d03f74d2dedbaec58330a4f.zip | |
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)
| -rw-r--r-- | 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 1eff62c5acf..3860c81065d 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -4038,6 +4038,8 @@ member." | |||
| 4038 | (let ((name (bindat-get-field local 'name)) | 4038 | (let ((name (bindat-get-field local 'name)) |
| 4039 | (value (bindat-get-field local 'value)) | 4039 | (value (bindat-get-field local 'value)) |
| 4040 | (type (bindat-get-field local 'type))) | 4040 | (type (bindat-get-field local 'type))) |
| 4041 | (when (not value) | ||
| 4042 | (setq value "<complex data type>")) | ||
| 4041 | (if (or (not value) | 4043 | (if (or (not value) |
| 4042 | (string-match "\\0x" value)) | 4044 | (string-match "\\0x" value)) |
| 4043 | (add-text-properties 0 (length name) | 4045 | (add-text-properties 0 (length name) |