diff options
| author | Nick Roberts | 2006-11-26 08:40:43 +0000 |
|---|---|---|
| committer | Nick Roberts | 2006-11-26 08:40:43 +0000 |
| commit | a326f3cff0913e79769cc0d1841b6ae38c74fc54 (patch) | |
| tree | 943d6fd35acb8af8dc070f7bd1f3ce6caf2d993e | |
| parent | bedb71f6b76ad373979a2252ce36f1c713a1f25e (diff) | |
| download | emacs-a326f3cff0913e79769cc0d1841b6ae38c74fc54.tar.gz emacs-a326f3cff0913e79769cc0d1841b6ae38c74fc54.zip | |
(gdb): Explain how to run in text command mode
more clearly. Say in error message that multiple debugging
requires restarting GDB.
| -rw-r--r-- | lisp/progmodes/gud.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index d41949cc1e3..6db003880ba 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -680,15 +680,19 @@ directory and source-file directory for your debugger. By | |||
| 680 | default this command starts GDB using a graphical interface. See | 680 | default this command starts GDB using a graphical interface. See |
| 681 | `gdba' for more information. | 681 | `gdba' for more information. |
| 682 | 682 | ||
| 683 | To run GDB in text command mode, set `gud-gdb-command-name' to | 683 | To run GDB in text command mode, replace the GDB \"--annotate=3\" |
| 684 | \"gdb --fullname\" and include the pathname, if necessary." | 684 | option with \"--fullname\" either in the minibuffer for the |
| 685 | current Emacs session, or the custom variable | ||
| 686 | `gud-gdb-command-name' for all future sessions. You need to use | ||
| 687 | text command mode to debug multiple programs within one Emacs | ||
| 688 | session." | ||
| 685 | (interactive (list (gud-query-cmdline 'gdb))) | 689 | (interactive (list (gud-query-cmdline 'gdb))) |
| 686 | 690 | ||
| 687 | (if (and gud-comint-buffer | 691 | (if (and gud-comint-buffer |
| 688 | (buffer-name gud-comint-buffer) | 692 | (buffer-name gud-comint-buffer) |
| 689 | (get-buffer-process gud-comint-buffer) | 693 | (get-buffer-process gud-comint-buffer) |
| 690 | (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba))) | 694 | (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba))) |
| 691 | (error "Multiple debugging is only supported with \"gdb --fullname\"")) | 695 | (error "Multiple debugging requires restarting in text command mode")) |
| 692 | 696 | ||
| 693 | (gud-common-init command-line nil 'gud-gdb-marker-filter) | 697 | (gud-common-init command-line nil 'gud-gdb-marker-filter) |
| 694 | (set (make-local-variable 'gud-minor-mode) 'gdb) | 698 | (set (make-local-variable 'gud-minor-mode) 'gdb) |