Prompting.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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-2023 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.7, 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" rel="start" title="Top">
  20. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  21. <link href="index.html" rel="up" title="Top">
  22. <link href="Errors.html" rel="next" title="Errors">
  23. <link href="Displays.html" rel="prev" title="Displays">
  24. <style type="text/css">
  25. <!--
  26. a.summary-letter {text-decoration: none}
  27. blockquote.indentedblock {margin-right: 0em}
  28. div.display {margin-left: 3.2em}
  29. div.example {margin-left: 3.2em}
  30. div.lisp {margin-left: 3.2em}
  31. kbd {font-style: oblique}
  32. pre.display {font-family: inherit}
  33. pre.format {font-family: inherit}
  34. pre.menu-comment {font-family: serif}
  35. pre.menu-preformatted {font-family: serif}
  36. span.nolinebreak {white-space: nowrap}
  37. span.roman {font-family: initial; font-weight: normal}
  38. span.sansserif {font-family: sans-serif; font-weight: normal}
  39. ul.no-bullet {list-style: none}
  40. -->
  41. </style>
  42. </head>
  43. <body lang="en">
  44. <span id="Prompting"></span><div class="header">
  45. <p>
  46. Next: <a href="Errors.html" accesskey="n" rel="next">Errors</a>, Previous: <a href="Displays.html" accesskey="p" rel="prev">Displays</a>, Up: <a href="index.html" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
  47. </div>
  48. <hr>
  49. <span id="Annotation-for-GDB-Input"></span><h2 class="chapter">8 Annotation for <small>GDB</small> Input</h2>
  50. <span id="index-annotations-for-prompts"></span>
  51. <p>When <small>GDB</small> prompts for input, it annotates this fact so it is possible
  52. to know when to send output, when the output from a given command is
  53. over, etc.
  54. </p>
  55. <p>Different kinds of input each have a different <em>input type</em>. Each
  56. input type has three annotations: a <code>pre-</code> annotation, which
  57. denotes the beginning of any prompt which is being output, a plain
  58. annotation, which denotes the end of the prompt, and then a <code>post-</code>
  59. annotation which denotes the end of any echo which may (or may not) be
  60. associated with the input. For example, the <code>prompt</code> input type
  61. features the following annotations:
  62. </p>
  63. <div class="example">
  64. <pre class="example">^Z^Zpre-prompt
  65. ^Z^Zprompt
  66. ^Z^Zpost-prompt
  67. </pre></div>
  68. <p>The input types are
  69. </p>
  70. <dl compact="compact">
  71. <dd><span id="index-pre_002dprompt"></span>
  72. <span id="index-prompt"></span>
  73. <span id="index-post_002dprompt"></span>
  74. </dd>
  75. <dt><code>prompt</code></dt>
  76. <dd><p>When <small>GDB</small> is prompting for a command (the main <small>GDB</small> prompt).
  77. </p>
  78. <span id="index-pre_002dcommands"></span>
  79. <span id="index-commands"></span>
  80. <span id="index-post_002dcommands"></span>
  81. </dd>
  82. <dt><code>commands</code></dt>
  83. <dd><p>When <small>GDB</small> prompts for a set of commands, like in the <code>commands</code>
  84. command. The annotations are repeated for each command which is input.
  85. </p>
  86. <span id="index-pre_002doverload_002dchoice"></span>
  87. <span id="index-overload_002dchoice"></span>
  88. <span id="index-post_002doverload_002dchoice"></span>
  89. </dd>
  90. <dt><code>overload-choice</code></dt>
  91. <dd><p>When <small>GDB</small> wants the user to select between various overloaded functions.
  92. </p>
  93. <span id="index-pre_002dquery"></span>
  94. <span id="index-query"></span>
  95. <span id="index-post_002dquery"></span>
  96. </dd>
  97. <dt><code>query</code></dt>
  98. <dd><p>When <small>GDB</small> wants the user to confirm a potentially dangerous operation.
  99. </p>
  100. <span id="index-pre_002dprompt_002dfor_002dcontinue"></span>
  101. <span id="index-prompt_002dfor_002dcontinue"></span>
  102. <span id="index-post_002dprompt_002dfor_002dcontinue"></span>
  103. </dd>
  104. <dt><code>prompt-for-continue</code></dt>
  105. <dd><p>When <small>GDB</small> is asking the user to press return to continue. Note: Don&rsquo;t
  106. expect this to work well; instead use <code>set height 0</code> to disable
  107. prompting. This is because the counting of lines is buggy in the
  108. presence of annotations.
  109. </p></dd>
  110. </dl>
  111. </body>
  112. </html>