comparison man/building.texi @ 65974:ef546abd2887

(GDB User Interface Layout): Improve diagram. (Watch Expressions): Explain how to make speedbar global. (Other GDB User Interface Buffers): Make references more precise.
author Nick Roberts <nickrob@snap.net.nz>
date Mon, 10 Oct 2005 12:27:21 +0000
parents 6d77eb5953d0
children 3e340cd42f9f 5e2d3828e89f
comparison
equal deleted inserted replaced
65973:ae4953c24452 65974:ef546abd2887
799 If @code{gdb-many-windows} is non-@code{nil}, regardless of the value of 799 If @code{gdb-many-windows} is non-@code{nil}, regardless of the value of
800 @code{gdb-show-main}, the layout below will appear unless 800 @code{gdb-show-main}, the layout below will appear unless
801 @code{gdb-use-inferior-io-buffer} is @code{nil}. In this case the 801 @code{gdb-use-inferior-io-buffer} is @code{nil}. In this case the
802 source buffer occupies the full width of the frame. 802 source buffer occupies the full width of the frame.
803 803
804 @multitable @columnfractions .5 .5 804 @example
805 @item GUD buffer (I/O of GDB) 805 +--------------------------------+--------------------------------+
806 @tab Locals buffer 806 | | |
807 @item 807 | GUD buffer (I/O of GDB) | Locals buffer |
808 @tab 808 | | |
809 @item Source buffer 809 |--------------------------------+--------------------------------+
810 @tab Input/Output (of inferior) buffer 810 | | |
811 @item 811 | Source buffer | I/O buffer (of inferior) |
812 @tab 812 | | |
813 @item Stack buffer 813 |--------------------------------+--------------------------------+
814 @tab Breakpoints buffer 814 | | |
815 @end multitable 815 | Stack buffer | Breakpoints buffer |
816 | | |
817 +--------------------------------+--------------------------------+
818 @end example
816 819
817 To toggle this layout, do @kbd{M-x gdb-many-windows}. 820 To toggle this layout, do @kbd{M-x gdb-many-windows}.
818 821
819 @findex gdb-restore-windows 822 @findex gdb-restore-windows
820 If you change the window layout, for example, while editing and 823 If you change the window layout, for example, while editing and
821 re-compiling your program, then you can restore it with the command 824 re-compiling your program, then you can restore it with the command
822 @code{gdb-restore-windows}. 825 @code{gdb-restore-windows}.
823 826
824 You may also choose which additional buffers you want to display, 827 You may also choose which additional buffers you want to display,
825 either in the same frame or a different one. Select GDB-windows or 828 either in the same frame or a different one. Select them from
826 GDB-Frames from the menu-bar under the heading GUD. If the menu-bar 829 @samp{GUD->GDB-windows} or @samp{GUD->GDB-Frames} sub-menu
827 is unavailable, type @code{M-x 830 respectively. If the menu-bar is unavailable, type @code{M-x
828 gdb-display-@var{buffertype}-buffer} or @code{M-x 831 gdb-display-@var{buffertype}-buffer} or @code{M-x
829 gdb-frame-@var{buffertype}-buffer} respectively, where @var{buffertype} 832 gdb-frame-@var{buffertype}-buffer} respectively, where
830 is the relevant buffer type e.g breakpoints. 833 @var{buffertype} is the relevant buffer type e.g breakpoints.
831 834
832 When you finish debugging then kill the GUD buffer with @kbd{C-x k}, 835 When you finish debugging then kill the GUD buffer with @kbd{C-x k},
833 which will also kill all the buffers associated with the session. 836 which will also kill all the buffers associated with the session.
834 However you need not do this if, after editing and re-compiling your 837 However you need not do this if, after editing and re-compiling your
835 source code within Emacs, you wish continue debugging. When you 838 source code within Emacs, you wish continue debugging. When you
872 @node Stack Buffer 875 @node Stack Buffer
873 @subsubsection Stack Buffer 876 @subsubsection Stack Buffer
874 877
875 The stack buffer displays a @dfn{call stack}, with one line for each 878 The stack buffer displays a @dfn{call stack}, with one line for each
876 of the nested subroutine calls (@dfn{stack frames}) now active in the 879 of the nested subroutine calls (@dfn{stack frames}) now active in the
877 program. @xref{Backtrace,,info stack, gdb, The GNU debugger}. 880 program. @xref{Backtrace,, Backtraces, gdb, The GNU debugger}.
878 881
879 @findex gdb-frames-select 882 @findex gdb-frames-select
880 The selected frame number is displayed in reverse contrast. Move 883 The selected frame number is displayed in reverse contrast. Move
881 point to any frame in the stack and type @key{RET} to select it 884 point to any frame in the stack and type @key{RET} to select it
882 (@code{gdb-frames-select}) and display the associated source in the 885 (@code{gdb-frames-select}) and display the associated source in the
896 Each watch expression is displayed in the speedbar. Complex data 899 Each watch expression is displayed in the speedbar. Complex data
897 types, such as arrays, structures and unions are represented in a tree 900 types, such as arrays, structures and unions are represented in a tree
898 format. To expand or contract a complex data type, click @kbd{Mouse-2} 901 format. To expand or contract a complex data type, click @kbd{Mouse-2}
899 on the tag to the left of the expression. 902 on the tag to the left of the expression.
900 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
901 @findex gdb-var-delete 910 @findex gdb-var-delete
902 With the cursor over the root expression of a complex data type, type 911 With the cursor over the root expression of a complex data type, type
903 @kbd{D} to delete it from the speedbar 912 @kbd{D} to delete it from the speedbar
904 (@code{gdb-var-delete}). 913 (@code{gdb-var-delete}).
905 914
934 displays its output here. Some of the commands from shell mode are 943 displays its output here. Some of the commands from shell mode are
935 available here. @xref{Shell Mode}. 944 available here. @xref{Shell Mode}.
936 945
937 @item Locals Buffer 946 @item Locals Buffer
938 The locals buffer displays the values of local variables of the 947 The locals buffer displays the values of local variables of the
939 current frame for simple data types (@pxref{Frame Info,,, gdb, The GNU 948 current frame for simple data types (@pxref{Frame Info, Frame Info,
940 debugger}). 949 Information on a frame, gdb, The GNU debugger}).
941 950
942 Arrays and structures display their type only. You must display them 951 Arrays and structures display their type only. You must display them
943 separately to examine their values. @xref{Watch Expressions}. 952 separately to examine their values. @xref{Watch Expressions}.
944 953
945 @item Registers Buffer 954 @item Registers Buffer
956 appear in the fringe or margin. 965 appear in the fringe or margin.
957 966
958 @item Threads Buffer 967 @item Threads Buffer
959 @findex gdb-threads-select 968 @findex gdb-threads-select
960 The threads buffer displays a summary of all threads currently in your 969 The threads buffer displays a summary of all threads currently in your
961 program (@pxref{Threads,,, gdb, The GNU debugger}). Move point to any 970 program (@pxref{Threads, Threads, Debugging programs with multiple
962 thread in the list and press @key{RET} to select it 971 threads, gdb, The GNU debugger}). Move point to any thread in the
963 (@code{gdb-threads-select}) and display the associated source in the 972 list and press @key{RET} to select it (@code{gdb-threads-select}) and
964 source buffer. Alternatively, click @kbd{Mouse-2} on a thread to 973 display the associated source in the source buffer. Alternatively,
965 select it. If the locals buffer is displayed then its contents update 974 click @kbd{Mouse-2} on a thread to select it. If the locals buffer is
966 to display the variables that are local to the new thread. 975 displayed then its contents update to display the variables that are
976 local to the new thread.
967 977
968 @item Memory Buffer 978 @item Memory Buffer
969 The memory buffer allows the user to examine sections of program 979 The memory buffer allows the user to examine sections of program
970 memory (@pxref{Memory,,, gdb, The GNU debugger}). Click @kbd{Mouse-1} 980 memory (@pxref{Memory, Memory, Examining memory, gdb, The GNU
971 on the appropriate part of the header line to change the starting 981 debugger}). Click @kbd{Mouse-1} on the appropriate part of the header
972 address or number of data items that the buffer displays. 982 line to change the starting address or number of data items that the
973 Click @kbd{Mouse-3} on the header line to select the display format 983 buffer displays. Click @kbd{Mouse-3} on the header line to select the
974 or unit size for these data items. 984 display format or unit size for these data items.
975 985
976 @end table 986 @end table
977 987
978 @node Executing Lisp 988 @node Executing Lisp
979 @section Executing Lisp Expressions 989 @section Executing Lisp Expressions