changeset 66162:9698655085d3

(gdb-var-create-handler): Make watch expressions display in speedbar for all buffers when debugging. (gdb-speedbar-expand-node): Ensure node contraction is always updated.
author Nick Roberts <nickrob@snap.net.nz>
date Mon, 17 Oct 2005 21:09:38 +0000
parents 5992ae60fb6b
children ce5979f4b405
files lisp/progmodes/gdb-ui.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el	Mon Oct 17 21:08:15 2005 +0000
+++ b/lisp/progmodes/gdb-ui.el	Mon Oct 17 21:09:38 2005 +0000
@@ -437,6 +437,9 @@
 			 nil nil)))
 	  (push var gdb-var-list)
 	  (speedbar 1)
+	  (unless (string-equal
+		   speedbar-initial-expansion-list-name "GUD")
+	    (speedbar-change-initial-expansion-list "GUD"))
 	  (if (equal (nth 2 var) "0")
 	      (gdb-enqueue-input
 	       (list
@@ -600,7 +603,9 @@
 	 (dolist (var gdb-var-list)
 	   (if (string-match (concat token "\\.") (nth 1 var))
 	       (setq gdb-var-list (delq var gdb-var-list))))
-	 (setq gdb-var-changed t))))
+	 (setq gdb-var-changed t)
+	 (with-current-buffer gud-comint-buffer
+	   (speedbar-timer-fn)))))
 
 (defun gdb-get-target-string ()
   (with-current-buffer gud-comint-buffer