aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/emacs/building.texi23
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
480Run GDB as a subprocess of Emacs. By default, this uses an IDE-like 480Run GDB as a subprocess of Emacs. This uses an IDE-like graphical
481graphical interface; see @ref{GDB Graphical Interface}. Only GDB 481interface; see @ref{GDB Graphical Interface}. Only GDB works with the
482works with the graphical interface. 482graphical interface.
483
484@item M-x gud-gdb @key{RET} @var{file} @key{RET}
485@findex gud-gdb
486Run GDB as a subprocess of Emacs. This command creates a buffer for
487input and output to GDB, and switches to it. If a GDB buffer already
488exists, 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
829operation you must not change these values during the GDB session. 835operation 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,
833in Emacs. To do this, replace the GDB @code{"--annotate=3"} option 839use @kbd{M-x gud-gdb}. You need to use text command mode to debug
834with @code{"--fullname"} either in the minibuffer for the current 840multiple programs within one Emacs session.
835Emacs session, or the custom variable @code{gud-gdb-command-name} for
836all future sessions. You need to use text command mode to debug
837multiple 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
839problems 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.