3 <title>Debugging with GDB
</title>
4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"Debugging with GDB">
6 <meta name=
"generator" content=
"makeinfo 4.3">
7 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home">
12 Node:
<a name=
"TUI%20Overview">TUI Overview
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"TUI-Keys.html#TUI%20Keys">TUI Keys
</a>,
14 Up:
<a rel=
"up" accesskey=
"u" href=
"TUI.html#TUI">TUI
</a>
18 <h3 class=
"section">TUI overview
</h3>
20 <p>The TUI has two display modes that can be switched while
24 <li>A curses (or TUI) mode in which it displays several text
25 windows on the terminal.
27 <li>A standard mode which corresponds to the GDB configured without
31 <p>In the TUI mode, GDB can display several text window
36 <dd>This window is the GDB command window with the GDB
37 prompt and the GDB outputs. The GDB input is still
38 managed using readline but through the TUI. The
<em>command
</em>
39 window is always visible.
41 <br><dt><em>source
</em>
42 <dd>The source window shows the source file of the program. The current
43 line as well as active breakpoints are displayed in this window.
44 The current program position is shown with the
<code>></code> marker and
45 active breakpoints are shown with
<code>*
</code> markers.
47 <br><dt><em>assembly
</em>
48 <dd>The assembly window shows the disassembly output of the program.
50 <br><dt><em>register
</em>
51 <dd>This window shows the processor registers. It detects when
52 a register is changed and when this is the case, registers that have
53 changed are highlighted.
57 <p>The source, assembly and register windows are attached to the thread
58 and the frame position. They are updated when the current thread
59 changes, when the frame changes or when the program counter changes.
60 These three windows are arranged by the TUI according to several
61 layouts. The layout defines which of these three windows are visible.
62 The following layouts are available:
69 <li>source and assembly
71 <li>source and registers
73 <li>assembly and registers