Annotations-for-Running.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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: Annotations for Running</title>
  13. <meta name="description" content="GDB&rsquo;s Obsolete Annotations: Annotations for Running">
  14. <meta name="keywords" content="GDB&rsquo;s Obsolete Annotations: Annotations for Running">
  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="Source-Annotations.html#Source-Annotations" rel="next" title="Source Annotations">
  23. <link href="Invalidation.html#Invalidation" rel="prev" title="Invalidation">
  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="Annotations-for-Running"></a>
  55. <div class="header">
  56. <p>
  57. Next: <a href="Source-Annotations.html#Source-Annotations" accesskey="n" rel="next">Source Annotations</a>, Previous: <a href="Invalidation.html#Invalidation" accesskey="p" rel="prev">Invalidation</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="Running-the-Program"></a>
  61. <h2 class="chapter">12 Running the Program</h2>
  62. <a name="index-annotations-for-running-programs"></a>
  63. <a name="index-starting"></a>
  64. <a name="index-stopping"></a>
  65. <p>When the program starts executing due to a <small>GDB</small> command such as
  66. <code>step</code> or <code>continue</code>,
  67. </p>
  68. <div class="smallexample">
  69. <pre class="smallexample">^Z^Zstarting
  70. </pre></div>
  71. <p>is output. When the program stops,
  72. </p>
  73. <div class="smallexample">
  74. <pre class="smallexample">^Z^Zstopped
  75. </pre></div>
  76. <p>is output. Before the <code>stopped</code> annotation, a variety of
  77. annotations describe how the program stopped.
  78. </p>
  79. <dl compact="compact">
  80. <dd><a name="index-exited"></a>
  81. </dd>
  82. <dt><code>^Z^Zexited <var>exit-status</var></code></dt>
  83. <dd><p>The program exited, and <var>exit-status</var> is the exit status (zero for
  84. successful exit, otherwise nonzero).
  85. </p>
  86. <a name="index-signalled"></a>
  87. <a name="index-signal_002dname"></a>
  88. <a name="index-signal_002dname_002dend"></a>
  89. <a name="index-signal_002dstring"></a>
  90. <a name="index-signal_002dstring_002dend"></a>
  91. </dd>
  92. <dt><code>^Z^Zsignalled</code></dt>
  93. <dd><p>The program exited with a signal. After the <code>^Z^Zsignalled</code>, the
  94. annotation continues:
  95. </p>
  96. <div class="smallexample">
  97. <pre class="smallexample"><var>intro-text</var>
  98. ^Z^Zsignal-name
  99. <var>name</var>
  100. ^Z^Zsignal-name-end
  101. <var>middle-text</var>
  102. ^Z^Zsignal-string
  103. <var>string</var>
  104. ^Z^Zsignal-string-end
  105. <var>end-text</var>
  106. </pre></div>
  107. <p>where <var>name</var> is the name of the signal, such as <code>SIGILL</code> or
  108. <code>SIGSEGV</code>, and <var>string</var> is the explanation of the signal, such
  109. as <code>Illegal Instruction</code> or <code>Segmentation fault</code>.
  110. <var>intro-text</var>, <var>middle-text</var>, and <var>end-text</var> are for the
  111. user&rsquo;s benefit and have no particular format.
  112. </p>
  113. <a name="index-signal"></a>
  114. </dd>
  115. <dt><code>^Z^Zsignal</code></dt>
  116. <dd><p>The syntax of this annotation is just like <code>signalled</code>, but <small>GDB</small> is
  117. just saying that the program received the signal, not that it was
  118. terminated with it.
  119. </p>
  120. <a name="index-breakpoint"></a>
  121. </dd>
  122. <dt><code>^Z^Zbreakpoint <var>number</var></code></dt>
  123. <dd><p>The program hit breakpoint number <var>number</var>.
  124. </p>
  125. <a name="index-watchpoint"></a>
  126. </dd>
  127. <dt><code>^Z^Zwatchpoint <var>number</var></code></dt>
  128. <dd><p>The program hit watchpoint number <var>number</var>.
  129. </p></dd>
  130. </dl>
  131. </body>
  132. </html>