aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2007-09-13 06:26:20 +0000
committerNick Roberts2007-09-13 06:26:20 +0000
commit2863ab168217df1d428ab95d5402420ac220e736 (patch)
treea8114dc1fc8874639660076839962e9cde111f24
parent1c9e363ade2173f3a25ed5ac96b242430ca3be7a (diff)
downloademacs-2863ab168217df1d428ab95d5402420ac220e736.tar.gz
emacs-2863ab168217df1d428ab95d5402420ac220e736.zip
(gdb-ready): New variable.
(gdb): Set it to nil. Set gud-running to nil here... (gud-common-init): ...instead of here.
-rw-r--r--lisp/progmodes/gud.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index d5632ffe09f..abe61929abe 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -104,6 +104,8 @@ If SOFT is non-nil, returns nil if the symbol doesn't already exist."
104 "Non-nil if debugged program is running. 104 "Non-nil if debugged program is running.
105Used to grey out relevant toolbar icons.") 105Used to grey out relevant toolbar icons.")
106 106
107(defvar gdb-ready nil)
108
107;; Use existing Info buffer, if possible. 109;; Use existing Info buffer, if possible.
108(defun gud-goto-info () 110(defun gud-goto-info ()
109 "Go to relevant Emacs info node." 111 "Go to relevant Emacs info node."
@@ -764,6 +766,8 @@ session."
764 (setq comint-prompt-regexp "^(.*gdb[+]?) *") 766 (setq comint-prompt-regexp "^(.*gdb[+]?) *")
765 (setq paragraph-start comint-prompt-regexp) 767 (setq paragraph-start comint-prompt-regexp)
766 (setq gdb-first-prompt t) 768 (setq gdb-first-prompt t)
769 (setq gud-running nil)
770 (setq gdb-ready nil)
767 (setq gud-filter-pending-text nil) 771 (setq gud-filter-pending-text nil)
768 (run-hooks 'gdb-mode-hook)) 772 (run-hooks 'gdb-mode-hook))
769 773
@@ -2519,7 +2523,6 @@ comint mode, which see."
2519 (and file-word (file-name-nondirectory file)))) 2523 (and file-word (file-name-nondirectory file))))
2520 (set (make-local-variable 'gud-marker-filter) marker-filter) 2524 (set (make-local-variable 'gud-marker-filter) marker-filter)
2521 (if find-file (set (make-local-variable 'gud-find-file) find-file)) 2525 (if find-file (set (make-local-variable 'gud-find-file) find-file))
2522 (setq gud-running nil)
2523 (setq gud-last-last-frame nil) 2526 (setq gud-last-last-frame nil)
2524 2527
2525 (set-process-filter (get-buffer-process (current-buffer)) 'gud-filter) 2528 (set-process-filter (get-buffer-process (current-buffer)) 'gud-filter)