]> git.eshelyaron.com Git - emacs.git/commitdiff
(gdb-ready): New variable.
authorNick Roberts <nickrob@snap.net.nz>
Thu, 13 Sep 2007 06:26:20 +0000 (06:26 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Thu, 13 Sep 2007 06:26:20 +0000 (06:26 +0000)
(gdb): Set it to nil.  Set gud-running to nil here...
(gud-common-init): ...instead of here.

lisp/progmodes/gud.el

index d5632ffe09f378d980d8caf471277f8038a4a657..abe61929abe1cd2ad61e096d583d020658cd6d21 100644 (file)
@@ -104,6 +104,8 @@ If SOFT is non-nil, returns nil if the symbol doesn't already exist."
   "Non-nil if debugged program is running.
 Used to grey out relevant toolbar icons.")
 
+(defvar gdb-ready nil)
+
 ;; Use existing Info buffer, if possible.
 (defun gud-goto-info ()
   "Go to relevant Emacs info node."
@@ -764,6 +766,8 @@ session."
   (setq comint-prompt-regexp "^(.*gdb[+]?) *")
   (setq paragraph-start comint-prompt-regexp)
   (setq gdb-first-prompt t)
+  (setq gud-running nil)
+  (setq gdb-ready nil)
   (setq gud-filter-pending-text nil)
   (run-hooks 'gdb-mode-hook))
 
@@ -2519,7 +2523,6 @@ comint mode, which see."
         (and file-word (file-name-nondirectory file))))
   (set (make-local-variable 'gud-marker-filter) marker-filter)
   (if find-file (set (make-local-variable 'gud-find-file) find-file))
-  (setq gud-running nil)
   (setq gud-last-last-frame nil)
 
   (set-process-filter (get-buffer-process (current-buffer)) 'gud-filter)