Annotations-for-Running.html 4.8 KB

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