Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

193 lines
6.5KB

  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 6.5, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <title>TUI Overview (Debugging with GDB)</title>
  17. <meta name="description" content="TUI Overview (Debugging with GDB)">
  18. <meta name="keywords" content="TUI Overview (Debugging with GDB)">
  19. <meta name="resource-type" content="document">
  20. <meta name="distribution" content="global">
  21. <meta name="Generator" content="makeinfo">
  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="prev" title="TUI">
  28. <style type="text/css">
  29. <!--
  30. a.summary-letter {text-decoration: none}
  31. blockquote.indentedblock {margin-right: 0em}
  32. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  33. blockquote.smallquotation {font-size: smaller}
  34. div.display {margin-left: 3.2em}
  35. div.example {margin-left: 3.2em}
  36. div.lisp {margin-left: 3.2em}
  37. div.smalldisplay {margin-left: 3.2em}
  38. div.smallexample {margin-left: 3.2em}
  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.nolinebreak {white-space: nowrap}
  50. span.roman {font-family: initial; font-weight: normal}
  51. span.sansserif {font-family: sans-serif; font-weight: normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en">
  57. <a name="TUI-Overview"></a>
  58. <div class="header">
  59. <p>
  60. 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>
  61. </div>
  62. <hr>
  63. <a name="TUI-Overview-1"></a>
  64. <h3 class="section">25.1 TUI Overview</h3>
  65. <p>In TUI mode, <small>GDB</small> can display several text windows:
  66. </p>
  67. <dl compact="compact">
  68. <dt><em>command</em></dt>
  69. <dd><p>This window is the <small>GDB</small> command window with the <small>GDB</small>
  70. prompt and the <small>GDB</small> output. The <small>GDB</small> input is still
  71. managed using readline.
  72. </p>
  73. </dd>
  74. <dt><em>source</em></dt>
  75. <dd><p>The source window shows the source file of the program. The current
  76. line and active breakpoints are displayed in this window.
  77. </p>
  78. </dd>
  79. <dt><em>assembly</em></dt>
  80. <dd><p>The assembly window shows the disassembly output of the program.
  81. </p>
  82. </dd>
  83. <dt><em>register</em></dt>
  84. <dd><p>This window shows the processor registers. Registers are highlighted
  85. when their values change.
  86. </p></dd>
  87. </dl>
  88. <p>The source and assembly windows show the current program position
  89. by highlighting the current line and marking it with a &lsquo;<samp>&gt;</samp>&rsquo; marker.
  90. Breakpoints are indicated with two markers. The first marker
  91. indicates the breakpoint type:
  92. </p>
  93. <dl compact="compact">
  94. <dt><code>B</code></dt>
  95. <dd><p>Breakpoint which was hit at least once.
  96. </p>
  97. </dd>
  98. <dt><code>b</code></dt>
  99. <dd><p>Breakpoint which was never hit.
  100. </p>
  101. </dd>
  102. <dt><code>H</code></dt>
  103. <dd><p>Hardware breakpoint which was hit at least once.
  104. </p>
  105. </dd>
  106. <dt><code>h</code></dt>
  107. <dd><p>Hardware breakpoint which was never hit.
  108. </p></dd>
  109. </dl>
  110. <p>The second marker indicates whether the breakpoint is enabled or not:
  111. </p>
  112. <dl compact="compact">
  113. <dt><code>+</code></dt>
  114. <dd><p>Breakpoint is enabled.
  115. </p>
  116. </dd>
  117. <dt><code>-</code></dt>
  118. <dd><p>Breakpoint is disabled.
  119. </p></dd>
  120. </dl>
  121. <p>The source, assembly and register windows are updated when the current
  122. thread changes, when the frame changes, or when the program counter
  123. changes.
  124. </p>
  125. <p>These windows are not all visible at the same time. The command
  126. window is always visible. The others can be arranged in several
  127. layouts:
  128. </p>
  129. <ul>
  130. <li> source only,
  131. </li><li> assembly only,
  132. </li><li> source and assembly,
  133. </li><li> source and registers, or
  134. </li><li> assembly and registers.
  135. </li></ul>
  136. <p>These are the standard layouts, but other layouts can be defined.
  137. </p>
  138. <p>A status line above the command window shows the following information:
  139. </p>
  140. <dl compact="compact">
  141. <dt><em>target</em></dt>
  142. <dd><p>Indicates the current <small>GDB</small> target.
  143. (see <a href="Targets.html#Targets">Specifying a Debugging Target</a>).
  144. </p>
  145. </dd>
  146. <dt><em>process</em></dt>
  147. <dd><p>Gives the current process or thread number.
  148. When no process is being debugged, this field is set to <code>No process</code>.
  149. </p>
  150. </dd>
  151. <dt><em>function</em></dt>
  152. <dd><p>Gives the current function name for the selected frame.
  153. The name is demangled if demangling is turned on (see <a href="Print-Settings.html#Print-Settings">Print Settings</a>).
  154. When there is no symbol corresponding to the current program counter,
  155. the string <code>??</code> is displayed.
  156. </p>
  157. </dd>
  158. <dt><em>line</em></dt>
  159. <dd><p>Indicates the current line number for the selected frame.
  160. When the current line number is not known, the string <code>??</code> is displayed.
  161. </p>
  162. </dd>
  163. <dt><em>pc</em></dt>
  164. <dd><p>Indicates the current program counter address.
  165. </p></dd>
  166. </dl>
  167. <hr>
  168. <div class="header">
  169. <p>
  170. 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>
  171. </div>
  172. </body>
  173. </html>