801 |
@code{gdb-use-inferior-io-buffer} is @code{nil}. In this case the |
@code{gdb-use-inferior-io-buffer} is @code{nil}. In this case the |
802 |
source buffer occupies the full width of the frame. |
source buffer occupies the full width of the frame. |
803 |
|
|
804 |
@multitable @columnfractions .5 .5 |
@example |
805 |
@item GUD buffer (I/O of GDB) |
+--------------------------------+--------------------------------+ |
806 |
@tab Locals buffer |
| | | |
807 |
@item |
| GUD buffer (I/O of GDB) | Locals buffer | |
808 |
@tab |
| | | |
809 |
@item Source buffer |
|--------------------------------+--------------------------------+ |
810 |
@tab Input/Output (of inferior) buffer |
| | | |
811 |
@item |
| Source buffer | I/O buffer (of inferior) | |
812 |
@tab |
| | | |
813 |
@item Stack buffer |
|--------------------------------+--------------------------------+ |
814 |
@tab Breakpoints buffer |
| | | |
815 |
@end multitable |
| Stack buffer | Breakpoints buffer | |
816 |
|
| | | |
817 |
|
+--------------------------------+--------------------------------+ |
818 |
|
@end example |
819 |
|
|
820 |
To toggle this layout, do @kbd{M-x gdb-many-windows}. |
To toggle this layout, do @kbd{M-x gdb-many-windows}. |
821 |
|
|
825 |
@code{gdb-restore-windows}. |
@code{gdb-restore-windows}. |
826 |
|
|
827 |
You may also choose which additional buffers you want to display, |
You may also choose which additional buffers you want to display, |
828 |
either in the same frame or a different one. Select GDB-windows or |
either in the same frame or a different one. Select them from |
829 |
GDB-Frames from the menu-bar under the heading GUD. If the menu-bar |
@samp{GUD->GDB-windows} or @samp{GUD->GDB-Frames} sub-menu |
830 |
is unavailable, type @code{M-x |
respectively. If the menu-bar is unavailable, type @code{M-x |
831 |
gdb-display-@var{buffertype}-buffer} or @code{M-x |
gdb-display-@var{buffertype}-buffer} or @code{M-x |
832 |
gdb-frame-@var{buffertype}-buffer} respectively, where @var{buffertype} |
gdb-frame-@var{buffertype}-buffer} respectively, where |
833 |
is the relevant buffer type e.g breakpoints. |
@var{buffertype} is the relevant buffer type e.g breakpoints. |
834 |
|
|
835 |
When you finish debugging then kill the GUD buffer with @kbd{C-x k}, |
When you finish debugging then kill the GUD buffer with @kbd{C-x k}, |
836 |
which will also kill all the buffers associated with the session. |
which will also kill all the buffers associated with the session. |
877 |
|
|
878 |
The stack buffer displays a @dfn{call stack}, with one line for each |
The stack buffer displays a @dfn{call stack}, with one line for each |
879 |
of the nested subroutine calls (@dfn{stack frames}) now active in the |
of the nested subroutine calls (@dfn{stack frames}) now active in the |
880 |
program. @xref{Backtrace,,info stack, gdb, The GNU debugger}. |
program. @xref{Backtrace,, Backtraces, gdb, The GNU debugger}. |
881 |
|
|
882 |
@findex gdb-frames-select |
@findex gdb-frames-select |
883 |
The selected frame number is displayed in reverse contrast. Move |
The selected frame number is displayed in reverse contrast. Move |
901 |
format. To expand or contract a complex data type, click @kbd{Mouse-2} |
format. To expand or contract a complex data type, click @kbd{Mouse-2} |
902 |
on the tag to the left of the expression. |
on the tag to the left of the expression. |
903 |
|
|
904 |
|
By default, watch expressions only display in the speedbar when the |
905 |
|
GUD buffer is selected in the attached frame. If you want your watch |
906 |
|
expressions to remain visible at all times then select the @samp{GUD} |
907 |
|
radio button on the @samp{Speedbar->Displays} sub-menu using |
908 |
|
@kbd{Mouse-3}. |
909 |
|
|
910 |
@findex gdb-var-delete |
@findex gdb-var-delete |
911 |
With the cursor over the root expression of a complex data type, type |
With the cursor over the root expression of a complex data type, type |
912 |
@kbd{D} to delete it from the speedbar |
@kbd{D} to delete it from the speedbar |
945 |
|
|
946 |
@item Locals Buffer |
@item Locals Buffer |
947 |
The locals buffer displays the values of local variables of the |
The locals buffer displays the values of local variables of the |
948 |
current frame for simple data types (@pxref{Frame Info,,, gdb, The GNU |
current frame for simple data types (@pxref{Frame Info, Frame Info, |
949 |
debugger}). |
Information on a frame, gdb, The GNU debugger}). |
950 |
|
|
951 |
Arrays and structures display their type only. You must display them |
Arrays and structures display their type only. You must display them |
952 |
separately to examine their values. @xref{Watch Expressions}. |
separately to examine their values. @xref{Watch Expressions}. |
967 |
@item Threads Buffer |
@item Threads Buffer |
968 |
@findex gdb-threads-select |
@findex gdb-threads-select |
969 |
The threads buffer displays a summary of all threads currently in your |
The threads buffer displays a summary of all threads currently in your |
970 |
program (@pxref{Threads,,, gdb, The GNU debugger}). Move point to any |
program (@pxref{Threads, Threads, Debugging programs with multiple |
971 |
thread in the list and press @key{RET} to select it |
threads, gdb, The GNU debugger}). Move point to any thread in the |
972 |
(@code{gdb-threads-select}) and display the associated source in the |
list and press @key{RET} to select it (@code{gdb-threads-select}) and |
973 |
source buffer. Alternatively, click @kbd{Mouse-2} on a thread to |
display the associated source in the source buffer. Alternatively, |
974 |
select it. If the locals buffer is displayed then its contents update |
click @kbd{Mouse-2} on a thread to select it. If the locals buffer is |
975 |
to display the variables that are local to the new thread. |
displayed then its contents update to display the variables that are |
976 |
|
local to the new thread. |
977 |
|
|
978 |
@item Memory Buffer |
@item Memory Buffer |
979 |
The memory buffer allows the user to examine sections of program |
The memory buffer allows the user to examine sections of program |
980 |
memory (@pxref{Memory,,, gdb, The GNU debugger}). Click @kbd{Mouse-1} |
memory (@pxref{Memory, Memory, Examining memory, gdb, The GNU |
981 |
on the appropriate part of the header line to change the starting |
debugger}). Click @kbd{Mouse-1} on the appropriate part of the header |
982 |
address or number of data items that the buffer displays. |
line to change the starting address or number of data items that the |
983 |
Click @kbd{Mouse-3} on the header line to select the display format |
buffer displays. Click @kbd{Mouse-3} on the header line to select the |
984 |
or unit size for these data items. |
display format or unit size for these data items. |
985 |
|
|
986 |
@end table |
@end table |
987 |
|
|