aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-11-26 08:37:07 +0000
committerNick Roberts2006-11-26 08:37:07 +0000
commitb95fd69b0ca09c002c0d52d94b1f7dc00a52f48d (patch)
tree984469dd4139ca0f64ac8190989ac041789e841e
parent2ebdd2d8e8030c0d854779e4dda01c388b295473 (diff)
downloademacs-b95fd69b0ca09c002c0d52d94b1f7dc00a52f48d.tar.gz
emacs-b95fd69b0ca09c002c0d52d94b1f7dc00a52f48d.zip
(Debugger Operation): Define text command mode.
Clarify how tooltips work. (GDB Graphical Interface): Explain how to run in text command mode more clearly.
-rw-r--r--man/building.texi35
1 files changed, 19 insertions, 16 deletions
diff --git a/man/building.texi b/man/building.texi
index a92810e617d..079dfccd287 100644
--- a/man/building.texi
+++ b/man/building.texi
@@ -536,10 +536,11 @@ allowed. GUD assumes that the first argument not starting with a
536@subsection Debugger Operation 536@subsection Debugger Operation
537 537
538@cindex fringes, and current execution line in GUD 538@cindex fringes, and current execution line in GUD
539 When you run a debugger with GUD using the textual interface, the 539 Generally when you run a debugger with GUD, the debugger uses an Emacs
540debugger uses an Emacs buffer for its ordinary input and output. This 540buffer for its ordinary input and output. This is called the GUD
541is called the GUD buffer. Input and output from the program you are 541buffer. Input and output from the program you are debugging also use
542debugging also use this buffer. 542this buffer. We call this @dfn{text command mode}. The GDB Graphical
543Interface can use further buffers (@pxref{GDB Graphical Interface}).
543 544
544 The debugger displays the source files of the program by visiting 545 The debugger displays the source files of the program by visiting
545them in Emacs buffers. An arrow in the left fringe indicates the 546them in Emacs buffers. An arrow in the left fringe indicates the
@@ -563,13 +564,13 @@ to be reflected in the debugger's tables.
563 The Tooltip facility (@pxref{Tooltips}) provides support for GUD@. 564 The Tooltip facility (@pxref{Tooltips}) provides support for GUD@.
564You activate this feature by turning on the minor mode 565You activate this feature by turning on the minor mode
565@code{gud-tooltip-mode}. Then you can display a variable's value in a 566@code{gud-tooltip-mode}. Then you can display a variable's value in a
566tooltip simply by pointing at it with the mouse. In graphical mode, 567tooltip simply by pointing at it with the mouse. This operates in the
567with a C program, you can also display the @code{#define} directive 568GUD buffer and in source buffers with major modes in the list
568associated with an identifier when the program is not executing. This 569@code{gud-tooltip-modes}. If the variable @code{gud-tooltip-echo-area}
569operates in the GUD buffer and in source buffers with major modes in 570is non-@code{nil} then the variable's value is displayed in the echo
570the list @code{gud-tooltip-modes}. If the variable 571area. When debugging a C program using the GDB Graphical Interface, you
571@code{gud-tooltip-echo-area} is non-@code{nil} then the variable's 572can also display macro definitions associated with an identifier when
572value is displayed in the echo area. 573the program is not executing.
573 574
574 GUD tooltips are disabled when you use GDB in text command mode 575 GUD tooltips are disabled when you use GDB in text command mode
575(@pxref{GDB Graphical Interface}), because displaying an expression's 576(@pxref{GDB Graphical Interface}), because displaying an expression's
@@ -828,11 +829,13 @@ operation you must not change these values during the GDB session.
828@vindex gud-gdb-command-name 829@vindex gud-gdb-command-name
829@findex gdba 830@findex gdba
830 You can also run GDB in text command mode, like other debuggers. To 831 You can also run GDB in text command mode, like other debuggers. To
831do this, set @code{gud-gdb-command-name} to @code{"gdb --fullname"} or 832do this, replace the GDB @code{"--annotate=3"} option with
832edit the startup command in the minibuffer to say that. You need to 833@code{"--fullname"} either in the minibuffer for the current Emacs
833do use text command mode to run multiple debugging sessions within one 834session, or the custom variable @code{gud-gdb-command-name} for all
834Emacs session. If you have customized @code{gud-gdb-command-name} in 835future sessions. You need to use text command mode to debug multiple
835that way, you can use @kbd{M-x gdba} to invoke GDB in graphical mode. 836programs within one Emacs session. If you have customized
837@code{gud-gdb-command-name} in this way, you can use @kbd{M-x gdba} to
838invoke GDB in graphical mode.
836 839
837@menu 840@menu
838* GDB-UI Layout:: Control the number of displayed buffers. 841* GDB-UI Layout:: Control the number of displayed buffers.