aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2003-10-21 23:09:09 +0000
committerNick Roberts2003-10-21 23:09:09 +0000
commit9b418429d51ffc20734f5ac7150961985ae3d44e (patch)
treec6c8f821f414cdf7ac14a2a8c5b633952515a2b4
parentf2afecdaf3638f1b927766a8941d754f7a5cf76e (diff)
downloademacs-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.texi67
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
681locals buffer is displayed then its contents update to display the 680locals buffer is displayed then its contents update to display the
682variables that are local to the new frame. 681variables 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
688If you want to see how a variable changes each time your program stops 687If you want to see how a variable changes each time your program stops
689then place the cursor over the variable name and click on the display 688then place the cursor over the variable name and click on the watch
690icon in the toolbar (@code{gud-display}). 689icon in the toolbar (@code{gud-watch}).
691
692Each displayed expression has its own frame on a graphical display and
693its own buffer on a text-only terminal. Arrays and structures have
694their own display formats. To display an array as a slice, at the top
695of the display window, click @kbd{Mouse-2} on the array index that you
696want to restrict and you will be prompted in the mini-buffer for a
697start and a stop value. Click @kbd{Mouse-2} on a pointer to
698dereference it in the same frame/buffer. Click @kbd{S-Mouse-2} there
699to do the same thing but in a new frame/buffer. There are two special
700commands for these buffers:
701 690
702@table @kbd 691Each watch expression is displayed in the speedbar. To expand or contract
703@item @kbd{v} 692an array or structure, click @kbd{Mouse-2} on the tag to the left of the
704@kindex v @r{(GDB data buffer)} 693expression.
705@findex gdb-array-visualise
706Visualise an array using the graph program from plotutils if this is
707installed. 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
713Delete 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
720The display buffer shows the list of displayed expressions
721(@pxref{Auto Display,,, gdb, The GNU debugger}). As with the
722breakpoints, you can enable/disable or delete the displayed
723expressions:
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)} 697With the cursor over a root expression i.e not an array index or
728@findex gdb-toggle-display 698structure component, type @key{RET} or click @kbd{Mouse-2} to delete
729Enable/disable the display at the current line 699it 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
735Delete 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
750debugger}). 713debugger}).
751 714
752Arrays and structures display their type only. You must display them 715Arrays and structures display their type only. You must display them
753separately to examine their values. @ref{Data Display}. 716separately to examine their values. @ref{Watch Expressions}.
754 717
755@item Registers Buffer 718@item Registers Buffer
756The registers buffer displays the values held by the registers 719The registers buffer displays the values held by the registers