Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

Prompting.html 5.2KB

3 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1994-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 no
  7. Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
  8. Texts. A copy of the license is included in the section entitled "GNU
  9. Free Documentation License". -->
  10. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  13. <title>Prompting (GDB&rsquo;s Obsolete Annotations)</title>
  14. <meta name="description" content="Prompting (GDB&rsquo;s Obsolete Annotations)">
  15. <meta name="keywords" content="Prompting (GDB&rsquo;s Obsolete Annotations)">
  16. <meta name="resource-type" content="document">
  17. <meta name="distribution" content="global">
  18. <meta name="Generator" content="makeinfo">
  19. <link href="index.html#Top" rel="start" title="Top">
  20. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  21. <link href="index.html#Top" rel="up" title="Top">
  22. <link href="Errors.html#Errors" rel="next" title="Errors">
  23. <link href="Displays.html#Displays" rel="prev" title="Displays">
  24. <style type="text/css">
  25. <!--
  26. a.summary-letter {text-decoration: none}
  27. blockquote.indentedblock {margin-right: 0em}
  28. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  29. blockquote.smallquotation {font-size: smaller}
  30. div.display {margin-left: 3.2em}
  31. div.example {margin-left: 3.2em}
  32. div.lisp {margin-left: 3.2em}
  33. div.smalldisplay {margin-left: 3.2em}
  34. div.smallexample {margin-left: 3.2em}
  35. div.smalllisp {margin-left: 3.2em}
  36. kbd {font-style: oblique}
  37. pre.display {font-family: inherit}
  38. pre.format {font-family: inherit}
  39. pre.menu-comment {font-family: serif}
  40. pre.menu-preformatted {font-family: serif}
  41. pre.smalldisplay {font-family: inherit; font-size: smaller}
  42. pre.smallexample {font-size: smaller}
  43. pre.smallformat {font-family: inherit; font-size: smaller}
  44. pre.smalllisp {font-size: smaller}
  45. span.nolinebreak {white-space: nowrap}
  46. span.roman {font-family: initial; font-weight: normal}
  47. span.sansserif {font-family: sans-serif; font-weight: normal}
  48. ul.no-bullet {list-style: none}
  49. -->
  50. </style>
  51. </head>
  52. <body lang="en">
  53. <a name="Prompting"></a>
  54. <div class="header">
  55. <p>
  56. Next: <a href="Errors.html#Errors" accesskey="n" rel="next">Errors</a>, Previous: <a href="Displays.html#Displays" accesskey="p" rel="prev">Displays</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
  57. </div>
  58. <hr>
  59. <a name="Annotation-for-GDB-Input"></a>
  60. <h2 class="chapter">8 Annotation for <small>GDB</small> Input</h2>
  61. <a name="index-annotations-for-prompts"></a>
  62. <p>When <small>GDB</small> prompts for input, it annotates this fact so it is possible
  63. to know when to send output, when the output from a given command is
  64. over, etc.
  65. </p>
  66. <p>Different kinds of input each have a different <em>input type</em>. Each
  67. input type has three annotations: a <code>pre-</code> annotation, which
  68. denotes the beginning of any prompt which is being output, a plain
  69. annotation, which denotes the end of the prompt, and then a <code>post-</code>
  70. annotation which denotes the end of any echo which may (or may not) be
  71. associated with the input. For example, the <code>prompt</code> input type
  72. features the following annotations:
  73. </p>
  74. <div class="smallexample">
  75. <pre class="smallexample">^Z^Zpre-prompt
  76. ^Z^Zprompt
  77. ^Z^Zpost-prompt
  78. </pre></div>
  79. <p>The input types are
  80. </p>
  81. <dl compact="compact">
  82. <dd><a name="index-pre_002dprompt"></a>
  83. <a name="index-prompt"></a>
  84. <a name="index-post_002dprompt"></a>
  85. </dd>
  86. <dt><code>prompt</code></dt>
  87. <dd><p>When <small>GDB</small> is prompting for a command (the main <small>GDB</small> prompt).
  88. </p>
  89. <a name="index-pre_002dcommands"></a>
  90. <a name="index-commands"></a>
  91. <a name="index-post_002dcommands"></a>
  92. </dd>
  93. <dt><code>commands</code></dt>
  94. <dd><p>When <small>GDB</small> prompts for a set of commands, like in the <code>commands</code>
  95. command. The annotations are repeated for each command which is input.
  96. </p>
  97. <a name="index-pre_002doverload_002dchoice"></a>
  98. <a name="index-overload_002dchoice"></a>
  99. <a name="index-post_002doverload_002dchoice"></a>
  100. </dd>
  101. <dt><code>overload-choice</code></dt>
  102. <dd><p>When <small>GDB</small> wants the user to select between various overloaded functions.
  103. </p>
  104. <a name="index-pre_002dquery"></a>
  105. <a name="index-query"></a>
  106. <a name="index-post_002dquery"></a>
  107. </dd>
  108. <dt><code>query</code></dt>
  109. <dd><p>When <small>GDB</small> wants the user to confirm a potentially dangerous operation.
  110. </p>
  111. <a name="index-pre_002dprompt_002dfor_002dcontinue"></a>
  112. <a name="index-prompt_002dfor_002dcontinue"></a>
  113. <a name="index-post_002dprompt_002dfor_002dcontinue"></a>
  114. </dd>
  115. <dt><code>prompt-for-continue</code></dt>
  116. <dd><p>When <small>GDB</small> is asking the user to press return to continue. Note: Don&rsquo;t
  117. expect this to work well; instead use <code>set height 0</code> to disable
  118. prompting. This is because the counting of lines is buggy in the
  119. presence of annotations.
  120. </p></dd>
  121. </dl>
  122. </body>
  123. </html>