diff options
| -rw-r--r-- | man/building.texi | 35 |
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 |
| 540 | debugger uses an Emacs buffer for its ordinary input and output. This | 540 | buffer for its ordinary input and output. This is called the GUD |
| 541 | is called the GUD buffer. Input and output from the program you are | 541 | buffer. Input and output from the program you are debugging also use |
| 542 | debugging also use this buffer. | 542 | this buffer. We call this @dfn{text command mode}. The GDB Graphical |
| 543 | Interface 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 |
| 545 | them in Emacs buffers. An arrow in the left fringe indicates the | 546 | them 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@. |
| 564 | You activate this feature by turning on the minor mode | 565 | You 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 |
| 566 | tooltip simply by pointing at it with the mouse. In graphical mode, | 567 | tooltip simply by pointing at it with the mouse. This operates in the |
| 567 | with a C program, you can also display the @code{#define} directive | 568 | GUD buffer and in source buffers with major modes in the list |
| 568 | associated with an identifier when the program is not executing. This | 569 | @code{gud-tooltip-modes}. If the variable @code{gud-tooltip-echo-area} |
| 569 | operates in the GUD buffer and in source buffers with major modes in | 570 | is non-@code{nil} then the variable's value is displayed in the echo |
| 570 | the list @code{gud-tooltip-modes}. If the variable | 571 | area. 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 | 572 | can also display macro definitions associated with an identifier when |
| 572 | value is displayed in the echo area. | 573 | the 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 |
| 831 | do this, set @code{gud-gdb-command-name} to @code{"gdb --fullname"} or | 832 | do this, replace the GDB @code{"--annotate=3"} option with |
| 832 | edit the startup command in the minibuffer to say that. You need to | 833 | @code{"--fullname"} either in the minibuffer for the current Emacs |
| 833 | do use text command mode to run multiple debugging sessions within one | 834 | session, or the custom variable @code{gud-gdb-command-name} for all |
| 834 | Emacs session. If you have customized @code{gud-gdb-command-name} in | 835 | future sessions. You need to use text command mode to debug multiple |
| 835 | that way, you can use @kbd{M-x gdba} to invoke GDB in graphical mode. | 836 | programs 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 | ||
| 838 | invoke 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. |