631 |
@menu |
@menu |
632 |
* Breakpoints Buffer:: A breakpoint control panel. |
* Breakpoints Buffer:: A breakpoint control panel. |
633 |
* Stack Buffer:: Select a frame from the call stack. |
* Stack Buffer:: Select a frame from the call stack. |
634 |
* Data Display:: Display and update expressions in their own buffer. |
* Watch Expressions:: Watch expressions and their values in the speedbar. |
|
* Display Buffer:: Control the displayed expressions. |
|
635 |
* Other Buffers:: Input/output, locals, registers and assembler buffers. |
* Other Buffers:: Input/output, locals, registers and assembler buffers. |
636 |
* Layout:: Control the number of displayed buffers. |
* Layout:: Control the number of displayed buffers. |
637 |
@end menu |
@end menu |
680 |
locals buffer is displayed then its contents update to display the |
locals buffer is displayed then its contents update to display the |
681 |
variables that are local to the new frame. |
variables that are local to the new frame. |
682 |
|
|
683 |
@node Data Display |
@node Watch Expressions |
684 |
@subsubsection Data Display |
@subsubsection Watch Expressions |
685 |
@cindex displaying expressions in GDB |
@cindex Watching expressions in GDB |
686 |
|
|
687 |
If you want to see how a variable changes each time your program stops |
If you want to see how a variable changes each time your program stops |
688 |
then place the cursor over the variable name and click on the display |
then place the cursor over the variable name and click on the watch |
689 |
icon in the toolbar (@code{gud-display}). |
icon in the toolbar (@code{gud-watch}). |
690 |
|
|
691 |
Each displayed expression has its own frame on a graphical display and |
Each watch expression is displayed in the speedbar. To expand or contract |
692 |
its own buffer on a text-only terminal. Arrays and structures have |
an array or structure, click @kbd{Mouse-2} on the tag to the left of the |
693 |
their own display formats. To display an array as a slice, at the top |
expression. |
694 |
of the display window, click @kbd{Mouse-2} on the array index that you |
|
695 |
want to restrict and you will be prompted in the mini-buffer for a |
@kindex RET @r{(GDB speedbar)} |
696 |
start and a stop value. Click @kbd{Mouse-2} on a pointer to |
@findex gdb-var-delete |
697 |
dereference it in the same frame/buffer. Click @kbd{S-Mouse-2} there |
With the cursor over a root expression i.e not an array index or |
698 |
to do the same thing but in a new frame/buffer. There are two special |
structure component, type @key{RET} or click @kbd{Mouse-2} to delete |
699 |
commands for these buffers: |
it from the speedbar (@code{gdb-var-delete}). |
|
|
|
|
@table @kbd |
|
|
@item @kbd{v} |
|
|
@kindex v @r{(GDB data buffer)} |
|
|
@findex gdb-array-visualise |
|
|
Visualise an array using the graph program from plotutils if this is |
|
|
installed. This only works for one dimensional arrays |
|
|
(@code{gdb-array-visualise}). |
|
|
|
|
|
@item @kbd{q} |
|
|
@kindex q @r{(GDB data buffer)} |
|
|
@findex gdb-delete-expression |
|
|
Delete the displayed expression and the associated frame |
|
|
(@code{gdb-delete-expression}). |
|
|
@end table |
|
|
|
|
|
@node Display Buffer |
|
|
@subsubsection Display Buffer |
|
|
|
|
|
The display buffer shows the list of displayed expressions |
|
|
(@pxref{Auto Display,,, gdb, The GNU debugger}). As with the |
|
|
breakpoints, you can enable/disable or delete the displayed |
|
|
expressions: |
|
|
|
|
|
@table @kbd |
|
|
@item @key{SPC} |
|
|
@kindex SPC @r{(GDB display buffer)} |
|
|
@findex gdb-toggle-display |
|
|
Enable/disable the display at the current line |
|
|
(@code{gdb-toggle-display}). |
|
|
|
|
|
@item @kbd{d} |
|
|
@kindex d @r{(GDB display buffer)} |
|
|
@findex gdb-delete-display |
|
|
Delete the display at the current line (@code{gdb-delete-display}). |
|
|
@end table |
|
700 |
|
|
701 |
@node Other Buffers |
@node Other Buffers |
702 |
@subsubsection Other Buffers |
@subsubsection Other Buffers |
713 |
debugger}). |
debugger}). |
714 |
|
|
715 |
Arrays and structures display their type only. You must display them |
Arrays and structures display their type only. You must display them |
716 |
separately to examine their values. @ref{Data Display}. |
separately to examine their values. @ref{Watch Expressions}. |
717 |
|
|
718 |
@item Registers Buffer |
@item Registers Buffer |
719 |
The registers buffer displays the values held by the registers |
The registers buffer displays the values held by the registers |