TUI-Overview.html 6.6 KB

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