changeset 79754:6a820000a687

(gdb-var-list-children-1): Put varnum in quotes in case of spaces, e.g. STL containers (not pretty).
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 08 Jan 2008 01:59:29 +0000
parents f57d8706b007
children f27b84de02cf
files lisp/progmodes/gdb-ui.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el	Tue Jan 08 01:56:38 2008 +0000
+++ b/lisp/progmodes/gdb-ui.el	Tue Jan 08 01:59:29 2008 +0000
@@ -3484,9 +3484,9 @@
   (gdb-enqueue-input
    (list
     (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 'gdba)
-	(concat "server interpreter mi \"-var-list-children --all-values "
-		varnum "\"\n")
-      (concat "-var-list-children --all-values " varnum "\n"))
+	(concat "server interpreter mi \"-var-list-children --all-values \\\""
+		varnum "\\\"\"\n")
+      (concat "-var-list-children --all-values \"" varnum "\"\n"))
     `(lambda () (gdb-var-list-children-handler-1 ,varnum)))))
 
 (defconst gdb-var-list-children-regexp-1