Prompting.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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-2019 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 5.2, http://www.gnu.org/software/texinfo/ -->
  11. <head>
  12. <title>GDB&rsquo;s Obsolete Annotations: Prompting</title>
  13. <meta name="description" content="GDB&rsquo;s Obsolete Annotations: Prompting">
  14. <meta name="keywords" content="GDB&rsquo;s Obsolete Annotations: Prompting">
  15. <meta name="resource-type" content="document">
  16. <meta name="distribution" content="global">
  17. <meta name="Generator" content="makeinfo">
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  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.smallquotation {font-size: smaller}
  28. div.display {margin-left: 3.2em}
  29. div.example {margin-left: 3.2em}
  30. div.indentedblock {margin-left: 3.2em}
  31. div.lisp {margin-left: 3.2em}
  32. div.smalldisplay {margin-left: 3.2em}
  33. div.smallexample {margin-left: 3.2em}
  34. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  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.nocodebreak {white-space:nowrap}
  46. span.nolinebreak {white-space:nowrap}
  47. span.roman {font-family:serif; font-weight:normal}
  48. span.sansserif {font-family:sans-serif; font-weight:normal}
  49. ul.no-bullet {list-style: none}
  50. -->
  51. </style>
  52. </head>
  53. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  54. <a name="Prompting"></a>
  55. <div class="header">
  56. <p>
  57. 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>
  58. </div>
  59. <hr>
  60. <a name="Annotation-for-GDB-Input"></a>
  61. <h2 class="chapter">8 Annotation for <small>GDB</small> Input</h2>
  62. <a name="index-annotations-for-prompts"></a>
  63. <p>When <small>GDB</small> prompts for input, it annotates this fact so it is possible
  64. to know when to send output, when the output from a given command is
  65. over, etc.
  66. </p>
  67. <p>Different kinds of input each have a different <em>input type</em>. Each
  68. input type has three annotations: a <code>pre-</code> annotation, which
  69. denotes the beginning of any prompt which is being output, a plain
  70. annotation, which denotes the end of the prompt, and then a <code>post-</code>
  71. annotation which denotes the end of any echo which may (or may not) be
  72. associated with the input. For example, the <code>prompt</code> input type
  73. features the following annotations:
  74. </p>
  75. <div class="smallexample">
  76. <pre class="smallexample">^Z^Zpre-prompt
  77. ^Z^Zprompt
  78. ^Z^Zpost-prompt
  79. </pre></div>
  80. <p>The input types are
  81. </p>
  82. <dl compact="compact">
  83. <dd><a name="index-pre_002dprompt"></a>
  84. <a name="index-prompt"></a>
  85. <a name="index-post_002dprompt"></a>
  86. </dd>
  87. <dt><code>prompt</code></dt>
  88. <dd><p>When <small>GDB</small> is prompting for a command (the main <small>GDB</small> prompt).
  89. </p>
  90. <a name="index-pre_002dcommands"></a>
  91. <a name="index-commands"></a>
  92. <a name="index-post_002dcommands"></a>
  93. </dd>
  94. <dt><code>commands</code></dt>
  95. <dd><p>When <small>GDB</small> prompts for a set of commands, like in the <code>commands</code>
  96. command. The annotations are repeated for each command which is input.
  97. </p>
  98. <a name="index-pre_002doverload_002dchoice"></a>
  99. <a name="index-overload_002dchoice"></a>
  100. <a name="index-post_002doverload_002dchoice"></a>
  101. </dd>
  102. <dt><code>overload-choice</code></dt>
  103. <dd><p>When <small>GDB</small> wants the user to select between various overloaded functions.
  104. </p>
  105. <a name="index-pre_002dquery"></a>
  106. <a name="index-query"></a>
  107. <a name="index-post_002dquery"></a>
  108. </dd>
  109. <dt><code>query</code></dt>
  110. <dd><p>When <small>GDB</small> wants the user to confirm a potentially dangerous operation.
  111. </p>
  112. <a name="index-pre_002dprompt_002dfor_002dcontinue"></a>
  113. <a name="index-prompt_002dfor_002dcontinue"></a>
  114. <a name="index-post_002dprompt_002dfor_002dcontinue"></a>
  115. </dd>
  116. <dt><code>prompt-for-continue</code></dt>
  117. <dd><p>When <small>GDB</small> is asking the user to press return to continue. Note: Don&rsquo;t
  118. expect this to work well; instead use <code>set height 0</code> to disable
  119. prompting. This is because the counting of lines is buggy in the
  120. presence of annotations.
  121. </p></dd>
  122. </dl>
  123. </body>
  124. </html>