diff options
| author | Nick Roberts | 2008-06-17 22:40:32 +0000 |
|---|---|---|
| committer | Nick Roberts | 2008-06-17 22:40:32 +0000 |
| commit | 4f45c6190059007bbaa19787c0c16ed472158d01 (patch) | |
| tree | aa8b1945dda338e35bc2d96b2aee3a14e99d4b71 | |
| parent | f427400cad440ad53685606ccf915b88cdb79f6f (diff) | |
| download | emacs-4f45c6190059007bbaa19787c0c16ed472158d01.tar.gz emacs-4f45c6190059007bbaa19787c0c16ed472158d01.zip | |
(Starting GUD): Add an entry for gud-gdb.
(GDB Graphical Interface): Explain that gud-gdb is now needed for text
command mode.
| -rw-r--r-- | doc/emacs/building.texi | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index aef30efd369..8934f0e2775 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi | |||
| @@ -477,9 +477,15 @@ to a particular debugger program. | |||
| 477 | @table @kbd | 477 | @table @kbd |
| 478 | @item M-x gdb @key{RET} @var{file} @key{RET} | 478 | @item M-x gdb @key{RET} @var{file} @key{RET} |
| 479 | @findex gdb | 479 | @findex gdb |
| 480 | Run GDB as a subprocess of Emacs. By default, this uses an IDE-like | 480 | Run GDB as a subprocess of Emacs. This uses an IDE-like graphical |
| 481 | graphical interface; see @ref{GDB Graphical Interface}. Only GDB | 481 | interface; see @ref{GDB Graphical Interface}. Only GDB works with the |
| 482 | works with the graphical interface. | 482 | graphical interface. |
| 483 | |||
| 484 | @item M-x gud-gdb @key{RET} @var{file} @key{RET} | ||
| 485 | @findex gud-gdb | ||
| 486 | Run GDB as a subprocess of Emacs. This command creates a buffer for | ||
| 487 | input and output to GDB, and switches to it. If a GDB buffer already | ||
| 488 | exists, it just switches to that buffer. | ||
| 483 | 489 | ||
| 484 | @item M-x dbx @key{RET} @var{file} @key{RET} | 490 | @item M-x dbx @key{RET} @var{file} @key{RET} |
| 485 | @findex dbx | 491 | @findex dbx |
| @@ -829,14 +835,9 @@ unlimited, so it sets the height and width accordingly. For correct | |||
| 829 | operation you must not change these values during the GDB session. | 835 | operation you must not change these values during the GDB session. |
| 830 | 836 | ||
| 831 | @vindex gud-gdb-command-name | 837 | @vindex gud-gdb-command-name |
| 832 | You can also run GDB in text command mode, like the other debuggers | 838 | To run GDB in text command mode, like the other debuggers in Emacs, |
| 833 | in Emacs. To do this, replace the GDB @code{"--annotate=3"} option | 839 | use @kbd{M-x gud-gdb}. You need to use text command mode to debug |
| 834 | with @code{"--fullname"} either in the minibuffer for the current | 840 | multiple programs within one Emacs session. |
| 835 | Emacs session, or the custom variable @code{gud-gdb-command-name} for | ||
| 836 | all future sessions. You need to use text command mode to debug | ||
| 837 | multiple programs within one Emacs session. You can also use | ||
| 838 | @kbd{M-x gud-gdb} to invoke GDB in text command mode if you have | ||
| 839 | problems before execution has started. | ||
| 840 | 841 | ||
| 841 | @menu | 842 | @menu |
| 842 | * GDB-UI Layout:: Control the number of displayed buffers. | 843 | * GDB-UI Layout:: Control the number of displayed buffers. |