]> code.delx.au - gnu-emacs/blobdiff - doc/emacs/building.texi
(Starting GUD): Expand on remote debugging.
[gnu-emacs] / doc / emacs / building.texi
index ac4721b2fe1a630895820e6238d4213692aee942..aef30efd3697a54e9625fe37de0ba252fd5e2296 100644 (file)
@@ -527,9 +527,14 @@ debugger supports.  However, shell wildcards and variables are not
 allowed.  GUD assumes that the first argument not starting with a
 @samp{-} is the executable file name.
 
+@c Running a debugger on a remote host
 Tramp provides a facility to debug programs on remote hosts.
 @xref{Running a debugger on a remote host, Running a debugger on a remote host,, tramp, The Tramp Manual}.
-@c Running a debugger on a remote host
+Both debugger and program are on the same remote host.
+This should not confused with debugging remote programs
+where the program runs on diferent machine to the debugger,
+as can be done with GDB, for example.
+@xref{Remote Debugging,, Debugging Remote Programs, gdb, The GNU debugger}.
 
 @node Debugger Operation
 @subsection Debugger Operation
@@ -862,11 +867,11 @@ displays the following frame layout:
 @smallexample
 @group
 +--------------------------------+--------------------------------+
-|   GUD buffer (I/O of GDB)      |   Locals buffer                |
+|   GUD buffer (I/O of GDB)      |   Locals/Registers buffer      |
 |--------------------------------+--------------------------------+
 |   Primary Source buffer        |   I/O buffer for debugged pgm  |
 |--------------------------------+--------------------------------+
-|   Stack buffer                 |   Breakpoints buffer           |
+|   Stack buffer                 |   Breakpoints/thread buffer    |
 +--------------------------------+--------------------------------+
 @end group
 @end smallexample
@@ -994,6 +999,11 @@ Visit the source line for the current breakpoint
 Visit the source line for the breakpoint you click on.
 @end table
 
+When @code{gdb-many-windows} is non-@code{nil}, the breakpoints buffer
+shares its window with the threads buffer.  To switch from one to the
+other click with @kbd{mouse-1} on the relevant button in the header
+line.
+
 @node Stack Buffer
 @subsubsection Stack Buffer
 
@@ -1065,15 +1075,25 @@ Alternatively, click @kbd{Mouse-2} on a thread to select it.  If the
 locals buffer is visible, its contents update to display the variables
 that are local in the new thread.
 
+When there is more than one main thread and the threads buffer is
+present, Emacs displays the selected thread number in the mode line of
+many of the GDB-UI Buffers.
+
 @item Memory Buffer
 The memory buffer lets you examine sections of program memory
 (@pxref{Memory, Memory, Examining memory, gdb, The GNU debugger}).
 Click @kbd{Mouse-1} on the appropriate part of the header line to
 change the starting address or number of data items that the buffer
-displays.  Click @kbd{Mouse-3} on the header line to select the
-display format or unit size for these data items.
+displays.  Alternatively, use @kbd{S} or @kbd{N} respectively.  Click
+@kbd{Mouse-3} on the header line to select the display format or unit
+size for these data items.
 @end table
 
+When @code{gdb-many-windows} is non-@code{nil}, the threads buffer
+shares its window with the breakpoints buffer, and the locals buffer
+with the registers buffer.  To switch from one to the other click with
+@kbd{mouse-1} on the relevant button in the header line.
+
 @node Watch Expressions
 @subsubsection Watch Expressions
 @cindex Watching expressions in GDB