You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Annotations-for-Running.html 5.3KB

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