Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

294 lines
11KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-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 the
  7. Invariant Sections being "Free Software" and "Free Software Needs
  8. Free Documentation", with the Front-Cover Texts being "A GNU Manual,"
  9. and with the Back-Cover Texts as in (a) below.
  10. (a) The FSF's Back-Cover Text is: "You are free to copy and modify
  11. this GNU Manual. Buying copies from GNU Press supports the FSF in
  12. developing GNU and promoting software freedom." -->
  13. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <title>GDB/MI Breakpoint Information (Debugging with GDB)</title>
  17. <meta name="description" content="GDB/MI Breakpoint Information (Debugging with GDB)">
  18. <meta name="keywords" content="GDB/MI Breakpoint Information (Debugging with GDB)">
  19. <meta name="resource-type" content="document">
  20. <meta name="distribution" content="global">
  21. <meta name="Generator" content="makeinfo">
  22. <link href="index.html#Top" rel="start" title="Top">
  23. <link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
  24. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  25. <link href="GDB_002fMI-Output-Records.html#GDB_002fMI-Output-Records" rel="up" title="GDB/MI Output Records">
  26. <link href="GDB_002fMI-Frame-Information.html#GDB_002fMI-Frame-Information" rel="next" title="GDB/MI Frame Information">
  27. <link href="GDB_002fMI-Async-Records.html#GDB_002fMI-Async-Records" rel="prev" title="GDB/MI Async Records">
  28. <style type="text/css">
  29. <!--
  30. a.summary-letter {text-decoration: none}
  31. blockquote.indentedblock {margin-right: 0em}
  32. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  33. blockquote.smallquotation {font-size: smaller}
  34. div.display {margin-left: 3.2em}
  35. div.example {margin-left: 3.2em}
  36. div.lisp {margin-left: 3.2em}
  37. div.smalldisplay {margin-left: 3.2em}
  38. div.smallexample {margin-left: 3.2em}
  39. div.smalllisp {margin-left: 3.2em}
  40. kbd {font-style: oblique}
  41. pre.display {font-family: inherit}
  42. pre.format {font-family: inherit}
  43. pre.menu-comment {font-family: serif}
  44. pre.menu-preformatted {font-family: serif}
  45. pre.smalldisplay {font-family: inherit; font-size: smaller}
  46. pre.smallexample {font-size: smaller}
  47. pre.smallformat {font-family: inherit; font-size: smaller}
  48. pre.smalllisp {font-size: smaller}
  49. span.nolinebreak {white-space: nowrap}
  50. span.roman {font-family: initial; font-weight: normal}
  51. span.sansserif {font-family: sans-serif; font-weight: normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en">
  57. <a name="GDB_002fMI-Breakpoint-Information"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="GDB_002fMI-Frame-Information.html#GDB_002fMI-Frame-Information" accesskey="n" rel="next">GDB/MI Frame Information</a>, Previous: <a href="GDB_002fMI-Async-Records.html#GDB_002fMI-Async-Records" accesskey="p" rel="prev">GDB/MI Async Records</a>, Up: <a href="GDB_002fMI-Output-Records.html#GDB_002fMI-Output-Records" accesskey="u" rel="up">GDB/MI Output Records</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  61. </div>
  62. <hr>
  63. <a name="GDB_002fMI-Breakpoint-Information-1"></a>
  64. <h4 class="subsection">27.5.4 <small>GDB/MI</small> Breakpoint Information</h4>
  65. <p>When <small>GDB</small> reports information about a breakpoint, a
  66. tracepoint, a watchpoint, or a catchpoint, it uses a tuple with the
  67. following fields:
  68. </p>
  69. <dl compact="compact">
  70. <dt><code>number</code></dt>
  71. <dd><p>The breakpoint number.
  72. </p>
  73. </dd>
  74. <dt><code>type</code></dt>
  75. <dd><p>The type of the breakpoint. For ordinary breakpoints this will be
  76. &lsquo;<samp>breakpoint</samp>&rsquo;, but many values are possible.
  77. </p>
  78. </dd>
  79. <dt><code>catch-type</code></dt>
  80. <dd><p>If the type of the breakpoint is &lsquo;<samp>catchpoint</samp>&rsquo;, then this
  81. indicates the exact type of catchpoint.
  82. </p>
  83. </dd>
  84. <dt><code>disp</code></dt>
  85. <dd><p>This is the breakpoint disposition&mdash;either &lsquo;<samp>del</samp>&rsquo;, meaning that
  86. the breakpoint will be deleted at the next stop, or &lsquo;<samp>keep</samp>&rsquo;,
  87. meaning that the breakpoint will not be deleted.
  88. </p>
  89. </dd>
  90. <dt><code>enabled</code></dt>
  91. <dd><p>This indicates whether the breakpoint is enabled, in which case the
  92. value is &lsquo;<samp>y</samp>&rsquo;, or disabled, in which case the value is &lsquo;<samp>n</samp>&rsquo;.
  93. Note that this is not the same as the field <code>enable</code>.
  94. </p>
  95. </dd>
  96. <dt><code>addr</code></dt>
  97. <dd><p>The address of the breakpoint. This may be a hexidecimal number,
  98. giving the address; or the string &lsquo;<samp>&lt;PENDING&gt;</samp>&rsquo;, for a pending
  99. breakpoint; or the string &lsquo;<samp>&lt;MULTIPLE&gt;</samp>&rsquo;, for a breakpoint with
  100. multiple locations. This field will not be present if no address can
  101. be determined. For example, a watchpoint does not have an address.
  102. </p>
  103. </dd>
  104. <dt><code>addr_flags</code></dt>
  105. <dd><p>Optional field containing any flags related to the address. These flags are
  106. architecture-dependent; see <a href="Architectures.html#Architectures">Architectures</a> for their meaning for a
  107. particular CPU.
  108. </p>
  109. </dd>
  110. <dt><code>func</code></dt>
  111. <dd><p>If known, the function in which the breakpoint appears.
  112. If not known, this field is not present.
  113. </p>
  114. </dd>
  115. <dt><code>filename</code></dt>
  116. <dd><p>The name of the source file which contains this function, if known.
  117. If not known, this field is not present.
  118. </p>
  119. </dd>
  120. <dt><code>fullname</code></dt>
  121. <dd><p>The full file name of the source file which contains this function, if
  122. known. If not known, this field is not present.
  123. </p>
  124. </dd>
  125. <dt><code>line</code></dt>
  126. <dd><p>The line number at which this breakpoint appears, if known.
  127. If not known, this field is not present.
  128. </p>
  129. </dd>
  130. <dt><code>at</code></dt>
  131. <dd><p>If the source file is not known, this field may be provided. If
  132. provided, this holds the address of the breakpoint, possibly followed
  133. by a symbol name.
  134. </p>
  135. </dd>
  136. <dt><code>pending</code></dt>
  137. <dd><p>If this breakpoint is pending, this field is present and holds the
  138. text used to set the breakpoint, as entered by the user.
  139. </p>
  140. </dd>
  141. <dt><code>evaluated-by</code></dt>
  142. <dd><p>Where this breakpoint&rsquo;s condition is evaluated, either &lsquo;<samp>host</samp>&rsquo; or
  143. &lsquo;<samp>target</samp>&rsquo;.
  144. </p>
  145. </dd>
  146. <dt><code>thread</code></dt>
  147. <dd><p>If this is a thread-specific breakpoint, then this identifies the
  148. thread in which the breakpoint can trigger.
  149. </p>
  150. </dd>
  151. <dt><code>task</code></dt>
  152. <dd><p>If this breakpoint is restricted to a particular Ada task, then this
  153. field will hold the task identifier.
  154. </p>
  155. </dd>
  156. <dt><code>cond</code></dt>
  157. <dd><p>If the breakpoint is conditional, this is the condition expression.
  158. </p>
  159. </dd>
  160. <dt><code>ignore</code></dt>
  161. <dd><p>The ignore count of the breakpoint.
  162. </p>
  163. </dd>
  164. <dt><code>enable</code></dt>
  165. <dd><p>The enable count of the breakpoint.
  166. </p>
  167. </dd>
  168. <dt><code>traceframe-usage</code></dt>
  169. <dd><p>FIXME.
  170. </p>
  171. </dd>
  172. <dt><code>static-tracepoint-marker-string-id</code></dt>
  173. <dd><p>For a static tracepoint, the name of the static tracepoint marker.
  174. </p>
  175. </dd>
  176. <dt><code>mask</code></dt>
  177. <dd><p>For a masked watchpoint, this is the mask.
  178. </p>
  179. </dd>
  180. <dt><code>pass</code></dt>
  181. <dd><p>A tracepoint&rsquo;s pass count.
  182. </p>
  183. </dd>
  184. <dt><code>original-location</code></dt>
  185. <dd><p>The location of the breakpoint as originally specified by the user.
  186. This field is optional.
  187. </p>
  188. </dd>
  189. <dt><code>times</code></dt>
  190. <dd><p>The number of times the breakpoint has been hit.
  191. </p>
  192. </dd>
  193. <dt><code>installed</code></dt>
  194. <dd><p>This field is only given for tracepoints. This is either &lsquo;<samp>y</samp>&rsquo;,
  195. meaning that the tracepoint is installed, or &lsquo;<samp>n</samp>&rsquo;, meaning that it
  196. is not.
  197. </p>
  198. </dd>
  199. <dt><code>what</code></dt>
  200. <dd><p>Some extra data, the exact contents of which are type-dependent.
  201. </p>
  202. </dd>
  203. <dt><code>locations</code></dt>
  204. <dd><p>This field is present if the breakpoint has multiple locations. It is also
  205. exceptionally present if the breakpoint is enabled and has a single, disabled
  206. location.
  207. </p>
  208. <p>The value is a list of locations. The format of a location is described below.
  209. </p>
  210. </dd>
  211. </dl>
  212. <p>A location in a multi-location breakpoint is represented as a tuple with the
  213. following fields:
  214. </p>
  215. <dl compact="compact">
  216. <dt><code>number</code></dt>
  217. <dd><p>The location number as a dotted pair, like &lsquo;<samp>1.2</samp>&rsquo;. The first digit is the
  218. number of the parent breakpoint. The second digit is the number of the
  219. location within that breakpoint.
  220. </p>
  221. </dd>
  222. <dt><code>enabled</code></dt>
  223. <dd><p>This indicates whether the location is enabled, in which case the
  224. value is &lsquo;<samp>y</samp>&rsquo;, or disabled, in which case the value is &lsquo;<samp>n</samp>&rsquo;.
  225. Note that this is not the same as the field <code>enable</code>.
  226. </p>
  227. </dd>
  228. <dt><code>addr</code></dt>
  229. <dd><p>The address of this location as an hexidecimal number.
  230. </p>
  231. </dd>
  232. <dt><code>addr_flags</code></dt>
  233. <dd><p>Optional field containing any flags related to the address. These flags are
  234. architecture-dependent; see <a href="Architectures.html#Architectures">Architectures</a> for their meaning for a
  235. particular CPU.
  236. </p>
  237. </dd>
  238. <dt><code>func</code></dt>
  239. <dd><p>If known, the function in which the location appears.
  240. If not known, this field is not present.
  241. </p>
  242. </dd>
  243. <dt><code>file</code></dt>
  244. <dd><p>The name of the source file which contains this location, if known.
  245. If not known, this field is not present.
  246. </p>
  247. </dd>
  248. <dt><code>fullname</code></dt>
  249. <dd><p>The full file name of the source file which contains this location, if
  250. known. If not known, this field is not present.
  251. </p>
  252. </dd>
  253. <dt><code>line</code></dt>
  254. <dd><p>The line number at which this location appears, if known.
  255. If not known, this field is not present.
  256. </p>
  257. </dd>
  258. <dt><code>thread-groups</code></dt>
  259. <dd><p>The thread groups this location is in.
  260. </p>
  261. </dd>
  262. </dl>
  263. <p>For example, here is what the output of <code>-break-insert</code>
  264. (see <a href="GDB_002fMI-Breakpoint-Commands.html#GDB_002fMI-Breakpoint-Commands">GDB/MI Breakpoint Commands</a>) might be:
  265. </p>
  266. <div class="smallexample">
  267. <pre class="smallexample">-&gt; -break-insert main
  268. &lt;- ^done,bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,
  269. enabled=&quot;y&quot;,addr=&quot;0x08048564&quot;,func=&quot;main&quot;,file=&quot;myprog.c&quot;,
  270. fullname=&quot;/home/nickrob/myprog.c&quot;,line=&quot;68&quot;,thread-groups=[&quot;i1&quot;],
  271. times=&quot;0&quot;}
  272. &lt;- (gdb)
  273. </pre></div>
  274. <hr>
  275. <div class="header">
  276. <p>
  277. Next: <a href="GDB_002fMI-Frame-Information.html#GDB_002fMI-Frame-Information" accesskey="n" rel="next">GDB/MI Frame Information</a>, Previous: <a href="GDB_002fMI-Async-Records.html#GDB_002fMI-Async-Records" accesskey="p" rel="prev">GDB/MI Async Records</a>, Up: <a href="GDB_002fMI-Output-Records.html#GDB_002fMI-Output-Records" accesskey="u" rel="up">GDB/MI Output Records</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  278. </div>
  279. </body>
  280. </html>