changeset 74194:9b921eb5917f

(gdb): Explain how to run in text command mode more clearly. Say in error message that multiple debugging requires restarting GDB.
author Nick Roberts <nickrob@snap.net.nz>
date Sun, 26 Nov 2006 08:40:43 +0000
parents ed440685996a
children d1491c6ae65d
files lisp/progmodes/gud.el
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gud.el	Sun Nov 26 08:40:10 2006 +0000
+++ b/lisp/progmodes/gud.el	Sun Nov 26 08:40:43 2006 +0000
@@ -680,15 +680,19 @@
 default this command starts GDB using a graphical interface.  See
 `gdba' for more information.
 
-To run GDB in text command mode, set `gud-gdb-command-name' to
-\"gdb --fullname\" and include the pathname, if necessary."
+To run GDB in text command mode, replace the GDB \"--annotate=3\"
+option with \"--fullname\" either in the minibuffer for the
+current Emacs session, or the custom variable
+`gud-gdb-command-name' for all future sessions.  You need to use
+text command mode to debug multiple programs within one Emacs
+session."
   (interactive (list (gud-query-cmdline 'gdb)))
 
   (if (and gud-comint-buffer
 	   (buffer-name gud-comint-buffer)
 	   (get-buffer-process gud-comint-buffer)
 	   (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba)))
-      (error "Multiple debugging is only supported with \"gdb --fullname\""))
+      (error "Multiple debugging requires restarting in text command mode"))
 
   (gud-common-init command-line nil 'gud-gdb-marker-filter)
   (set (make-local-variable 'gud-minor-mode) 'gdb)