# HG changeset patch # User Nick Roberts # Date 1213742432 0 # Node ID 966aa682b9a1d1df2ff54b94066575ef20fc9046 # Parent d37c900369a05bfa050609bde0889788cccd4830 (Starting GUD): Add an entry for gud-gdb. (GDB Graphical Interface): Explain that gud-gdb is now needed for text command mode. diff -r d37c900369a0 -r 966aa682b9a1 doc/emacs/building.texi --- a/doc/emacs/building.texi Tue Jun 17 22:39:03 2008 +0000 +++ b/doc/emacs/building.texi Tue Jun 17 22:40:32 2008 +0000 @@ -477,9 +477,15 @@ @table @kbd @item M-x gdb @key{RET} @var{file} @key{RET} @findex gdb -Run GDB as a subprocess of Emacs. By default, this uses an IDE-like -graphical interface; see @ref{GDB Graphical Interface}. Only GDB -works with the graphical interface. +Run GDB as a subprocess of Emacs. This uses an IDE-like graphical +interface; see @ref{GDB Graphical Interface}. Only GDB works with the +graphical interface. + +@item M-x gud-gdb @key{RET} @var{file} @key{RET} +@findex gud-gdb +Run GDB as a subprocess of Emacs. This command creates a buffer for +input and output to GDB, and switches to it. If a GDB buffer already +exists, it just switches to that buffer. @item M-x dbx @key{RET} @var{file} @key{RET} @findex dbx @@ -829,14 +835,9 @@ operation you must not change these values during the GDB session. @vindex gud-gdb-command-name - You can also run GDB in text command mode, like the other debuggers -in Emacs. To do this, replace the GDB @code{"--annotate=3"} option -with @code{"--fullname"} either in the minibuffer for the current -Emacs session, or the custom variable @code{gud-gdb-command-name} for -all future sessions. You need to use text command mode to debug -multiple programs within one Emacs session. You can also use -@kbd{M-x gud-gdb} to invoke GDB in text command mode if you have -problems before execution has started. + To run GDB in text command mode, like the other debuggers in Emacs, +use @kbd{M-x gud-gdb}. You need to use text command mode to debug +multiple programs within one Emacs session. @menu * GDB-UI Layout:: Control the number of displayed buffers.