Show
Ignore:
Timestamp:
08/10/06 11:19:54 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/man/building.texi

    r4131 r4140  
    834834 
    835835@menu 
    836 * GDB User Interface Layout::   Control the number of displayed buffers. 
     836* GDB-UI Layout::               Control the number of displayed buffers. 
     837* Source Buffers::              Use the mouse in the fringe/margin to 
     838                                control your program. 
    837839* Breakpoints Buffer::          A breakpoint control panel. 
    838840* Stack Buffer::                Select a frame from the call stack. 
    839 * Other GDB User Interface Buffers:: Input/output, locals, registers, 
     841* Other GDB-UI Buffers::        Input/output, locals, registers, 
    840842                                assembler, threads and memory buffers. 
    841 * GDB commands in the Fringe::  Use the mouse in the fringe/margin to 
    842                                 control your program. 
    843843* Watch Expressions::           Monitor variable values in the speedbar. 
    844844@end menu 
    845845 
    846 @node GDB User Interface Layout 
     846@node GDB-UI Layout 
    847847@subsubsection GDB User Interface Layout 
    848848@cindex GDB User Interface layout 
     
    864864|   GUD buffer (I/O of GDB)      |   Locals buffer                | 
    865865|--------------------------------+--------------------------------+ 
    866 |   Source buffer                |   I/O buffer for debugged pgm  | 
     866|   Primary Source buffer        |   I/O buffer for debugged pgm  | 
    867867|--------------------------------+--------------------------------+ 
    868868|   Stack buffer                 |   Breakpoints buffer           | 
     
    872872 
    873873  However, if @code{gdb-use-separate-io-buffer} is @code{nil}, the I/O 
    874 buffer does not appear and the source buffer occupies the full width 
    875 of the frame. 
     874buffer does not appear and the primary source buffer occupies the full 
     875width of the frame. 
    876876 
    877877@findex gdb-restore-windows 
     
    885885gdb-many-windows}. 
    886886 
    887   You may also specify additional GUD-related buffers to display, 
     887  You may also specify additional GDB-related buffers to display, 
    888888either in the same frame or a different one.  Select the buffers you 
    889889want with the @samp{GUD->GDB-windows} and @samp{GUD->GDB-Frames} 
     
    905905places. 
    906906 
     907@node Source Buffers 
     908@subsubsection Source Buffers 
     909@cindex GDB commands in Fringe 
     910 
     911@c @findex gdb-mouse-set-clear-breakpoint 
     912@c @findex gdb-mouse-toggle-breakpoint 
     913Many GDB commands can be entered using keybindings or the tool bar but 
     914sometimes it is quicker to use the fringe.  These commands either 
     915manipulate breakpoints or control program execution.  When there is no 
     916fringe, you can use the margin but this is only present when the 
     917source file already has a breakpoint. 
     918 
     919You can click @kbd{Mouse-1} in the fringe or display margin of a 
     920source buffer to set a breakpoint there and, on a graphical display, a 
     921red bullet will appear on that line.  If a breakpoint already exists 
     922on that line, the same click will remove it.  You can also enable or 
     923disable a breakpoint by clicking @kbd{C-Mouse-1} on the bullet. 
     924 
     925A solid arrow in the left fringe of a source buffer indicates the line 
     926of the innermost frame where the debugged program has stopped. A 
     927hollow arrow indicates the current execution line of higher level 
     928frames. 
     929 
     930If you drag the arrow in the fringe with @kbd{Mouse-1} 
     931(@code{gdb-mouse-until}), execution will continue to the line where 
     932you release the button, provided it is still in the same frame. 
     933Alternatively, you can click @kbd{Mouse-3} at some point in the fringe 
     934of this buffer and execution will advance to there.  A similar command 
     935(@code{gdb-mouse-jump}) allows you to jump to a source line without 
     936executing the intermediate lines by clicking @kbd{C-Mouse-3}.  This 
     937command allows you to go backwards which can be useful for running 
     938through code that has already executed, in order to examine its 
     939execution in more detail. 
     940 
     941@table @kbd 
     942@item Mouse-1 
     943Set or clear a breakpoint. 
     944 
     945@item C-Mouse-1 
     946Enable or disable a breakpoint. 
     947 
     948@item Mouse-3 
     949Continue execution to here. 
     950 
     951@item C-Mouse-3 
     952Jump to here. 
     953@end table 
     954 
     955If the variable @code{gdb-find-source-frame} is non-@code{nil} and 
     956execution stops in a frame for which there is no source code e.g after 
     957an interrupt, then Emacs finds and displays the first frame further up 
     958stack for which there is source.  If it is @code{nil} then the source 
     959buffer continues to display the last frame which maybe more useful, 
     960for example, when re-setting a breakpoint. 
     961 
    907962@node Breakpoints Buffer 
    908963@subsubsection Breakpoints Buffer 
     
    919974Enable/disable the current breakpoint (@code{gdb-toggle-breakpoint}). 
    920975On a graphical display, this changes the color of a bullet in the 
    921 margin of the source buffer at the relevant line.  This is red when 
     976margin of a source buffer at the relevant line.  This is red when 
    922977the breakpoint is enabled and grey when it is disabled.  Text-only 
    923978terminals correspondingly display a @samp{B} or @samp{b}. 
     
    9541009the new frame. 
    9551010 
    956 @node Other GDB User Interface Buffers 
     1011@node Other GDB-UI Buffers 
    9571012@subsubsection Other Buffers 
    9581013 
     
    9611016@vindex gdb-use-separate-io-buffer 
    9621017If the variable @code{gdb-use-separate-io-buffer} is non-@code{nil}, 
    963 the executable program that is being debugged takes its input and 
    964 displays its output here.  Otherwise it uses the GUD buffer for that. 
    965 To toggle whether GUD mode uses this buffer, do @kbd{M-x 
    966 gdb-use-separate-io-buffer}.  That takes effect when you next 
    967 restart the program you are debugging. 
     1018the program being debugged takes its input and displays its output 
     1019here.  Otherwise it uses the GUD buffer for that.  To toggle whether 
     1020GUD mode uses this buffer, do @kbd{M-x gdb-use-separate-io-buffer}. 
     1021That takes effect when you next restart the program you are debugging. 
    9681022 
    9691023The history and replay commands from Shell mode are available here, 
    970 as are the commands to send signals to the program you are debugging
     1024as are the commands to send signals to the debugged program
    9711025@xref{Shell Mode}. 
    9721026 
     
    10041058threads, gdb, The GNU debugger}).  Move point to any thread in the 
    10051059list and press @key{RET} to select it (@code{gdb-threads-select}) and 
    1006 display the associated source in the source buffer.  Alternatively, 
    1007 click @kbd{Mouse-2} on a thread to select it.  If the locals buffer is 
    1008 visible, its contents update to display the variables that are local 
    1009 in the new thread. 
     1060display the associated source in the primary source buffer. 
     1061Alternatively, click @kbd{Mouse-2} on a thread to select it.  If the 
     1062locals buffer is visible, its contents update to display the variables 
     1063that are local in the new thread. 
    10101064 
    10111065@item Memory Buffer 
     
    10161070displays.  Click @kbd{Mouse-3} on the header line to select the 
    10171071display format or unit size for these data items. 
    1018 @end table 
    1019  
    1020 @node GDB commands in the Fringe 
    1021 @subsubsection GDB commands in the Fringe 
    1022 @cindex GDB commands in the Fringe 
    1023  
    1024 @c @findex gdb-mouse-set-clear-breakpoint 
    1025 @c @findex gdb-mouse-toggle-breakpoint 
    1026 Many GDB commands can be entered using keybindings or the tool bar but 
    1027 sometimes it is quicker to use the fringe.  These commands either 
    1028 manipulate breakpoints or control program execution.  When there is no 
    1029 fringe, you can use the margin but this is only present when the 
    1030 source file already has a breakpoint. 
    1031  
    1032 You can click @kbd{Mouse-1} in the fringe or display margin of a 
    1033 source buffer to set a breakpoint there and, on a graphical display, a 
    1034 red bullet will appear on that line.  If a breakpoint already exists 
    1035 on that line, the same click will remove it.  You can also enable or 
    1036 disable a breakpoint by clicking @kbd{C-Mouse-1} on the bullet. 
    1037  
    1038 If you drag the debugger arrow in the fringe with @kbd{Mouse-1} 
    1039 (@code{gdb-mouse-until}), execution will continue to the line where 
    1040 you release the button, provided it is still in the same frame. 
    1041 Alternatively, you can click @kbd{Mouse-3} at some point in the fringe 
    1042 of this buffer and execution will advance to there.  A similar command 
    1043 (@code{gdb-mouse-jump}) allows you to jump to a source line without 
    1044 executing the intermediate lines by clicking @kbd{C-Mouse-3}.  This 
    1045 command allows you to go backwards which can be useful for running 
    1046 through code that has already executed, in order to examine its 
    1047 execution in more detail. 
    1048  
    1049 @table @kbd 
    1050 @item Mouse-1 
    1051 Set or clear a breakpoint. 
    1052  
    1053 @item C-Mouse-1 
    1054 Enable or disable a breakpoint. 
    1055  
    1056 @item Mouse-3 
    1057 Continue execution to here. 
    1058  
    1059 @item C-Mouse-3 
    1060 Jump to here. 
    10611072@end table 
    10621073