changeset 71221:07cd76eb8e03

(gud-menu-map): Use a conditional help echo for gud-go. (gud-common-init): Other debuggers may trigger error.
author Nick Roberts <nickrob@snap.net.nz>
date Mon, 05 Jun 2006 10:10:51 +0000
parents 4331609429da
children 6e0c68027a7d
files lisp/progmodes/gud.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gud.el	Mon Jun 05 07:11:33 2006 +0000
+++ b/lisp/progmodes/gud.el	Mon Jun 05 10:10:51 2006 +0000
@@ -147,7 +147,7 @@
                   :enable (and (not gud-running)
 			       (memq gud-minor-mode '(gdbmi gdb dbx jdb)))
 		  :visible (not (eq gud-minor-mode 'gdba)))
-    ([go]	menu-item "Run/Continue" gud-go
+    ([go]	menu-item (if gdb-active-process "Continue" "Run") gud-go
 		  :visible (and (not gud-running)
 				(eq gud-minor-mode 'gdba)))
     ([stop]	menu-item "Stop" gud-stop-subjob
@@ -2565,7 +2565,7 @@
 	 (existing-buffer (get-buffer (concat "*gud" filepart "*"))))
     (pop-to-buffer (concat "*gud" filepart "*"))
     (when (and existing-buffer (get-buffer-process existing-buffer))
-      (error "This program is already running under gdb"))
+      (error "This program is already being debugged"))
     ;; Set the dir, in case the buffer already existed with a different dir.
     (setq default-directory dir)
     ;; Set default-directory to the file's directory.