# HG changeset patch # User Nick Roberts # Date 1164530443 0 # Node ID 9b921eb5917f801ed5e316bdb16ecb93769a6c36 # Parent ed440685996ad93779b3fd4d63b709c3d525e14e (gdb): Explain how to run in text command mode more clearly. Say in error message that multiple debugging requires restarting GDB. diff -r ed440685996a -r 9b921eb5917f lisp/progmodes/gud.el --- 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)