1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<!-- Copyright (C) 1988-2021 Free Software Foundation, Inc.
4
5Permission is granted to copy, distribute and/or modify this document
6under the terms of the GNU Free Documentation License, Version 1.3 or
7any later version published by the Free Software Foundation; with the
8Invariant Sections being "Free Software" and "Free Software Needs
9Free Documentation", with the Front-Cover Texts being "A GNU Manual,"
10and with the Back-Cover Texts as in (a) below.
11
12(a) The FSF's Back-Cover Text is: "You are free to copy and modify
13this GNU Manual.  Buying copies from GNU Press supports the FSF in
14developing GNU and promoting software freedom." -->
15<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
16<head>
17<title>Debugging with GDB: TUI Overview</title>
18
19<meta name="description" content="Debugging with GDB: TUI Overview">
20<meta name="keywords" content="Debugging with GDB: TUI Overview">
21<meta name="resource-type" content="document">
22<meta name="distribution" content="global">
23<meta name="Generator" content="makeinfo">
24<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
25<link href="index.html#Top" rel="start" title="Top">
26<link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
27<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
28<link href="TUI.html#TUI" rel="up" title="TUI">
29<link href="TUI-Keys.html#TUI-Keys" rel="next" title="TUI Keys">
30<link href="TUI.html#TUI" rel="previous" title="TUI">
31<style type="text/css">
32<!--
33a.summary-letter {text-decoration: none}
34blockquote.smallquotation {font-size: smaller}
35div.display {margin-left: 3.2em}
36div.example {margin-left: 3.2em}
37div.indentedblock {margin-left: 3.2em}
38div.lisp {margin-left: 3.2em}
39div.smalldisplay {margin-left: 3.2em}
40div.smallexample {margin-left: 3.2em}
41div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
42div.smalllisp {margin-left: 3.2em}
43kbd {font-style:oblique}
44pre.display {font-family: inherit}
45pre.format {font-family: inherit}
46pre.menu-comment {font-family: serif}
47pre.menu-preformatted {font-family: serif}
48pre.smalldisplay {font-family: inherit; font-size: smaller}
49pre.smallexample {font-size: smaller}
50pre.smallformat {font-family: inherit; font-size: smaller}
51pre.smalllisp {font-size: smaller}
52span.nocodebreak {white-space:nowrap}
53span.nolinebreak {white-space:nowrap}
54span.roman {font-family:serif; font-weight:normal}
55span.sansserif {font-family:sans-serif; font-weight:normal}
56ul.no-bullet {list-style: none}
57-->
58</style>
59
60
61</head>
62
63<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
64<a name="TUI-Overview"></a>
65<div class="header">
66<p>
67Next: <a href="TUI-Keys.html#TUI-Keys" accesskey="n" rel="next">TUI Keys</a>, Up: <a href="TUI.html#TUI" accesskey="u" rel="up">TUI</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
68</div>
69<hr>
70<a name="TUI-Overview-1"></a>
71<h3 class="section">25.1 TUI Overview</h3>
72
73<p>In TUI mode, <small>GDB</small> can display several text windows:
74</p>
75<dl compact="compact">
76<dt><em>command</em></dt>
77<dd><p>This window is the <small>GDB</small> command window with the <small>GDB</small>
78prompt and the <small>GDB</small> output.  The <small>GDB</small> input is still
79managed using readline.
80</p>
81</dd>
82<dt><em>source</em></dt>
83<dd><p>The source window shows the source file of the program.  The current
84line and active breakpoints are displayed in this window.
85</p>
86</dd>
87<dt><em>assembly</em></dt>
88<dd><p>The assembly window shows the disassembly output of the program.
89</p>
90</dd>
91<dt><em>register</em></dt>
92<dd><p>This window shows the processor registers.  Registers are highlighted
93when their values change.
94</p></dd>
95</dl>
96
97<p>The source and assembly windows show the current program position
98by highlighting the current line and marking it with a &lsquo;<samp>&gt;</samp>&rsquo; marker.
99Breakpoints are indicated with two markers.  The first marker
100indicates the breakpoint type:
101</p>
102<dl compact="compact">
103<dt><code>B</code></dt>
104<dd><p>Breakpoint which was hit at least once.
105</p>
106</dd>
107<dt><code>b</code></dt>
108<dd><p>Breakpoint which was never hit.
109</p>
110</dd>
111<dt><code>H</code></dt>
112<dd><p>Hardware breakpoint which was hit at least once.
113</p>
114</dd>
115<dt><code>h</code></dt>
116<dd><p>Hardware breakpoint which was never hit.
117</p></dd>
118</dl>
119
120<p>The second marker indicates whether the breakpoint is enabled or not:
121</p>
122<dl compact="compact">
123<dt><code>+</code></dt>
124<dd><p>Breakpoint is enabled.
125</p>
126</dd>
127<dt><code>-</code></dt>
128<dd><p>Breakpoint is disabled.
129</p></dd>
130</dl>
131
132<p>The source, assembly and register windows are updated when the current
133thread changes, when the frame changes, or when the program counter
134changes.
135</p>
136<p>These windows are not all visible at the same time.  The command
137window is always visible.  The others can be arranged in several
138layouts:
139</p>
140<ul>
141<li> source only,
142
143</li><li> assembly only,
144
145</li><li> source and assembly,
146
147</li><li> source and registers, or
148
149</li><li> assembly and registers.
150</li></ul>
151
152<p>These are the standard layouts, but other layouts can be defined.
153</p>
154<p>A status line above the command window shows the following information:
155</p>
156<dl compact="compact">
157<dt><em>target</em></dt>
158<dd><p>Indicates the current <small>GDB</small> target.
159(see <a href="Targets.html#Targets">Specifying a Debugging Target</a>).
160</p>
161</dd>
162<dt><em>process</em></dt>
163<dd><p>Gives the current process or thread number.
164When no process is being debugged, this field is set to <code>No process</code>.
165</p>
166</dd>
167<dt><em>function</em></dt>
168<dd><p>Gives the current function name for the selected frame.
169The name is demangled if demangling is turned on (see <a href="Print-Settings.html#Print-Settings">Print Settings</a>).
170When there is no symbol corresponding to the current program counter,
171the string <code>??</code> is displayed.
172</p>
173</dd>
174<dt><em>line</em></dt>
175<dd><p>Indicates the current line number for the selected frame.
176When the current line number is not known, the string <code>??</code> is displayed.
177</p>
178</dd>
179<dt><em>pc</em></dt>
180<dd><p>Indicates the current program counter address.
181</p></dd>
182</dl>
183
184<hr>
185<div class="header">
186<p>
187Next: <a href="TUI-Keys.html#TUI-Keys" accesskey="n" rel="next">TUI Keys</a>, Up: <a href="TUI.html#TUI" accesskey="u" rel="up">TUI</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
188</div>
189
190
191
192</body>
193</html>
194