aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-06-08 12:15:27 +0000
committerNick Roberts2006-06-08 12:15:27 +0000
commit41c8cdc3b07972b0c23a37505ff1f2728a247013 (patch)
tree2b01963d9e6fe242cbd216f9c6f7c610fe717df8
parentf9ff5ee1e8b6bce1dd4e8bd762cb69c59f620991 (diff)
downloademacs-41c8cdc3b07972b0c23a37505ff1f2728a247013.tar.gz
emacs-41c8cdc3b07972b0c23a37505ff1f2728a247013.zip
(gdb-set-gud-minor-mode-existing-buffers-1)
(gdb-prompt, gdb-set-gud-minor-mode-existing-buffers): Show status in mode line at startup.
-rw-r--r--lisp/progmodes/gdb-ui.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 0f92523e306..bb821907aa8 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -426,7 +426,8 @@ With arg, use separate IO iff arg is positive."
426 (when gud-tooltip-mode 426 (when gud-tooltip-mode
427 (make-local-variable 'gdb-define-alist) 427 (make-local-variable 'gdb-define-alist)
428 (gdb-create-define-alist) 428 (gdb-create-define-alist)
429 (add-hook 'after-save-hook 'gdb-create-define-alist nil t))))))) 429 (add-hook 'after-save-hook 'gdb-create-define-alist nil t))))))
430 (gdb-force-mode-line-update "ready"))
430 431
431(defun gdb-find-watch-expression () 432(defun gdb-find-watch-expression ()
432 (let* ((var (nth (- (line-number-at-pos (point)) 2) gdb-var-list)) 433 (let* ((var (nth (- (line-number-at-pos (point)) 2) gdb-var-list))
@@ -1238,6 +1239,7 @@ happens to be in effect."
1238 "An annotation handler for `prompt'. 1239 "An annotation handler for `prompt'.
1239This sends the next command (if any) to gdb." 1240This sends the next command (if any) to gdb."
1240 (when gdb-first-prompt 1241 (when gdb-first-prompt
1242 (gdb-force-mode-line-update "initializing...")
1241 (gdb-init-1) 1243 (gdb-init-1)
1242 (setq gdb-first-prompt nil)) 1244 (setq gdb-first-prompt nil))
1243 (let ((sink gdb-output-sink)) 1245 (let ((sink gdb-output-sink))
@@ -3239,7 +3241,8 @@ is set in them."
3239 (when gud-tooltip-mode 3241 (when gud-tooltip-mode
3240 (make-local-variable 'gdb-define-alist) 3242 (make-local-variable 'gdb-define-alist)
3241 (gdb-create-define-alist) 3243 (gdb-create-define-alist)
3242 (add-hook 'after-save-hook 'gdb-create-define-alist nil t)))))) 3244 (add-hook 'after-save-hook 'gdb-create-define-alist nil t)))))
3245 (gdb-force-mode-line-update "ready"))
3243 3246
3244; Uses "-var-list-children --all-values". Needs GDB 6.1 onwards. 3247; Uses "-var-list-children --all-values". Needs GDB 6.1 onwards.
3245(defun gdb-var-list-children-1 (varnum) 3248(defun gdb-var-list-children-1 (varnum)