diff options
| author | Nick Roberts | 2003-10-21 23:09:09 +0000 |
|---|---|---|
| committer | Nick Roberts | 2003-10-21 23:09:09 +0000 |
| commit | 9b418429d51ffc20734f5ac7150961985ae3d44e (patch) | |
| tree | c6c8f821f414cdf7ac14a2a8c5b633952515a2b4 | |
| parent | f2afecdaf3638f1b927766a8941d754f7a5cf76e (diff) | |
| download | emacs-9b418429d51ffc20734f5ac7150961985ae3d44e.tar.gz emacs-9b418429d51ffc20734f5ac7150961985ae3d44e.zip | |
(Watch Expressions): Update section on data display
to reflect code changes (GDB Graphical Interface).
| -rw-r--r-- | man/building.texi | 67 |
1 files changed, 15 insertions, 52 deletions
diff --git a/man/building.texi b/man/building.texi index d28917ada22..ed05baa4ca9 100644 --- a/man/building.texi +++ b/man/building.texi | |||
| @@ -631,8 +631,7 @@ to know GDB commands. | |||
| 631 | @menu | 631 | @menu |
| 632 | * Breakpoints Buffer:: A breakpoint control panel. | 632 | * Breakpoints Buffer:: A breakpoint control panel. |
| 633 | * Stack Buffer:: Select a frame from the call stack. | 633 | * Stack Buffer:: Select a frame from the call stack. |
| 634 | * Data Display:: Display and update expressions in their own buffer. | 634 | * Watch Expressions:: Watch expressions and their values in the speedbar. |
| 635 | * Display Buffer:: Control the displayed expressions. | ||
| 636 | * Other Buffers:: Input/output, locals, registers and assembler buffers. | 635 | * Other Buffers:: Input/output, locals, registers and assembler buffers. |
| 637 | * Layout:: Control the number of displayed buffers. | 636 | * Layout:: Control the number of displayed buffers. |
| 638 | @end menu | 637 | @end menu |
| @@ -681,59 +680,23 @@ associated source in the source buffer. Alternatively, click | |||
| 681 | locals buffer is displayed then its contents update to display the | 680 | locals buffer is displayed then its contents update to display the |
| 682 | variables that are local to the new frame. | 681 | variables that are local to the new frame. |
| 683 | 682 | ||
| 684 | @node Data Display | 683 | @node Watch Expressions |
| 685 | @subsubsection Data Display | 684 | @subsubsection Watch Expressions |
| 686 | @cindex displaying expressions in GDB | 685 | @cindex Watching expressions in GDB |
| 687 | 686 | ||
| 688 | If you want to see how a variable changes each time your program stops | 687 | If you want to see how a variable changes each time your program stops |
| 689 | then place the cursor over the variable name and click on the display | 688 | then place the cursor over the variable name and click on the watch |
| 690 | icon in the toolbar (@code{gud-display}). | 689 | icon in the toolbar (@code{gud-watch}). |
| 691 | |||
| 692 | Each displayed expression has its own frame on a graphical display and | ||
| 693 | its own buffer on a text-only terminal. Arrays and structures have | ||
| 694 | their own display formats. To display an array as a slice, at the top | ||
| 695 | of the display window, click @kbd{Mouse-2} on the array index that you | ||
| 696 | want to restrict and you will be prompted in the mini-buffer for a | ||
| 697 | start and a stop value. Click @kbd{Mouse-2} on a pointer to | ||
| 698 | dereference it in the same frame/buffer. Click @kbd{S-Mouse-2} there | ||
| 699 | to do the same thing but in a new frame/buffer. There are two special | ||
| 700 | commands for these buffers: | ||
| 701 | 690 | ||
| 702 | @table @kbd | 691 | Each watch expression is displayed in the speedbar. To expand or contract |
| 703 | @item @kbd{v} | 692 | an array or structure, click @kbd{Mouse-2} on the tag to the left of the |
| 704 | @kindex v @r{(GDB data buffer)} | 693 | expression. |
| 705 | @findex gdb-array-visualise | ||
| 706 | Visualise an array using the graph program from plotutils if this is | ||
| 707 | installed. This only works for one dimensional arrays | ||
| 708 | (@code{gdb-array-visualise}). | ||
| 709 | |||
| 710 | @item @kbd{q} | ||
| 711 | @kindex q @r{(GDB data buffer)} | ||
| 712 | @findex gdb-delete-expression | ||
| 713 | Delete the displayed expression and the associated frame | ||
| 714 | (@code{gdb-delete-expression}). | ||
| 715 | @end table | ||
| 716 | |||
| 717 | @node Display Buffer | ||
| 718 | @subsubsection Display Buffer | ||
| 719 | |||
| 720 | The display buffer shows the list of displayed expressions | ||
| 721 | (@pxref{Auto Display,,, gdb, The GNU debugger}). As with the | ||
| 722 | breakpoints, you can enable/disable or delete the displayed | ||
| 723 | expressions: | ||
| 724 | 694 | ||
| 725 | @table @kbd | 695 | @kindex RET @r{(GDB speedbar)} |
| 726 | @item @key{SPC} | 696 | @findex gdb-var-delete |
| 727 | @kindex SPC @r{(GDB display buffer)} | 697 | With the cursor over a root expression i.e not an array index or |
| 728 | @findex gdb-toggle-display | 698 | structure component, type @key{RET} or click @kbd{Mouse-2} to delete |
| 729 | Enable/disable the display at the current line | 699 | it from the speedbar (@code{gdb-var-delete}). |
| 730 | (@code{gdb-toggle-display}). | ||
| 731 | |||
| 732 | @item @kbd{d} | ||
| 733 | @kindex d @r{(GDB display buffer)} | ||
| 734 | @findex gdb-delete-display | ||
| 735 | Delete the display at the current line (@code{gdb-delete-display}). | ||
| 736 | @end table | ||
| 737 | 700 | ||
| 738 | @node Other Buffers | 701 | @node Other Buffers |
| 739 | @subsubsection Other Buffers | 702 | @subsubsection Other Buffers |
| @@ -750,7 +713,7 @@ current frame for simple data types (@pxref{Frame Info,,, gdb, The GNU | |||
| 750 | debugger}). | 713 | debugger}). |
| 751 | 714 | ||
| 752 | Arrays and structures display their type only. You must display them | 715 | Arrays and structures display their type only. You must display them |
| 753 | separately to examine their values. @ref{Data Display}. | 716 | separately to examine their values. @ref{Watch Expressions}. |
| 754 | 717 | ||
| 755 | @item Registers Buffer | 718 | @item Registers Buffer |
| 756 | The registers buffer displays the values held by the registers | 719 | The registers buffer displays the values held by the registers |