GDB_002fMI-Tracepoint-Commands.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  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 5.1, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <title>Debugging with GDB: GDB/MI Tracepoint Commands</title>
  16. <meta name="description" content="Debugging with GDB: GDB/MI Tracepoint Commands">
  17. <meta name="keywords" content="Debugging with GDB: GDB/MI Tracepoint Commands">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  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.html#GDB_002fMI" rel="up" title="GDB/MI">
  26. <link href="GDB_002fMI-Symbol-Query.html#GDB_002fMI-Symbol-Query" rel="next" title="GDB/MI Symbol Query">
  27. <link href="GDB_002fMI-Data-Manipulation.html#GDB_002fMI-Data-Manipulation" rel="previous" title="GDB/MI Data Manipulation">
  28. <style type="text/css">
  29. <!--
  30. a.summary-letter {text-decoration: none}
  31. blockquote.smallquotation {font-size: smaller}
  32. div.display {margin-left: 3.2em}
  33. div.example {margin-left: 3.2em}
  34. div.indentedblock {margin-left: 3.2em}
  35. div.lisp {margin-left: 3.2em}
  36. div.smalldisplay {margin-left: 3.2em}
  37. div.smallexample {margin-left: 3.2em}
  38. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  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.nocodebreak {white-space:nowrap}
  50. span.nolinebreak {white-space:nowrap}
  51. span.roman {font-family:serif; font-weight:normal}
  52. span.sansserif {font-family:sans-serif; font-weight:normal}
  53. ul.no-bullet {list-style: none}
  54. -->
  55. </style>
  56. </head>
  57. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  58. <a name="GDB_002fMI-Tracepoint-Commands"></a>
  59. <div class="header">
  60. <p>
  61. Next: <a href="GDB_002fMI-Symbol-Query.html#GDB_002fMI-Symbol-Query" accesskey="n" rel="next">GDB/MI Symbol Query</a>, Previous: <a href="GDB_002fMI-Data-Manipulation.html#GDB_002fMI-Data-Manipulation" accesskey="p" rel="previous">GDB/MI Data Manipulation</a>, Up: <a href="GDB_002fMI.html#GDB_002fMI" accesskey="u" rel="up">GDB/MI</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>
  62. </div>
  63. <hr>
  64. <a name="GDB_002fMI-Tracepoint-Commands-1"></a>
  65. <h3 class="section">27.17 <small>GDB/MI</small> Tracepoint Commands</h3>
  66. <p>The commands defined in this section implement MI support for
  67. tracepoints. For detailed introduction, see <a href="Tracepoints.html#Tracepoints">Tracepoints</a>.
  68. </p>
  69. <a name="The-_002dtrace_002dfind-Command"></a>
  70. <h4 class="subheading">The <code>-trace-find</code> Command</h4>
  71. <a name="index-_002dtrace_002dfind"></a>
  72. <a name="Synopsis-72"></a>
  73. <h4 class="subsubheading">Synopsis</h4>
  74. <div class="smallexample">
  75. <pre class="smallexample"> -trace-find <var>mode</var> [<var>parameters</var>&hellip;]
  76. </pre></div>
  77. <p>Find a trace frame using criteria defined by <var>mode</var> and
  78. <var>parameters</var>. The following table lists permissible
  79. modes and their parameters. For details of operation, see <a href="tfind.html#tfind">tfind</a>.
  80. </p>
  81. <dl compact="compact">
  82. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  83. <dd><p>No parameters are required. Stops examining trace frames.
  84. </p>
  85. </dd>
  86. <dt>&lsquo;<samp>frame-number</samp>&rsquo;</dt>
  87. <dd><p>An integer is required as parameter. Selects tracepoint frame with
  88. that index.
  89. </p>
  90. </dd>
  91. <dt>&lsquo;<samp>tracepoint-number</samp>&rsquo;</dt>
  92. <dd><p>An integer is required as parameter. Finds next
  93. trace frame that corresponds to tracepoint with the specified number.
  94. </p>
  95. </dd>
  96. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  97. <dd><p>An address is required as parameter. Finds
  98. next trace frame that corresponds to any tracepoint at the specified
  99. address.
  100. </p>
  101. </dd>
  102. <dt>&lsquo;<samp>pc-inside-range</samp>&rsquo;</dt>
  103. <dd><p>Two addresses are required as parameters. Finds next trace
  104. frame that corresponds to a tracepoint at an address inside the
  105. specified range. Both bounds are considered to be inside the range.
  106. </p>
  107. </dd>
  108. <dt>&lsquo;<samp>pc-outside-range</samp>&rsquo;</dt>
  109. <dd><p>Two addresses are required as parameters. Finds
  110. next trace frame that corresponds to a tracepoint at an address outside
  111. the specified range. Both bounds are considered to be inside the range.
  112. </p>
  113. </dd>
  114. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  115. <dd><p>Line specification is required as parameter. See <a href="Specify-Location.html#Specify-Location">Specify Location</a>.
  116. Finds next trace frame that corresponds to a tracepoint at
  117. the specified location.
  118. </p>
  119. </dd>
  120. </dl>
  121. <p>If &lsquo;<samp>none</samp>&rsquo; was passed as <var>mode</var>, the response does not
  122. have fields. Otherwise, the response may have the following fields:
  123. </p>
  124. <dl compact="compact">
  125. <dt>&lsquo;<samp>found</samp>&rsquo;</dt>
  126. <dd><p>This field has either &lsquo;<samp>0</samp>&rsquo; or &lsquo;<samp>1</samp>&rsquo; as the value, depending
  127. on whether a matching tracepoint was found.
  128. </p>
  129. </dd>
  130. <dt>&lsquo;<samp>traceframe</samp>&rsquo;</dt>
  131. <dd><p>The index of the found traceframe. This field is present iff
  132. the &lsquo;<samp>found</samp>&rsquo; field has value of &lsquo;<samp>1</samp>&rsquo;.
  133. </p>
  134. </dd>
  135. <dt>&lsquo;<samp>tracepoint</samp>&rsquo;</dt>
  136. <dd><p>The index of the found tracepoint. This field is present iff
  137. the &lsquo;<samp>found</samp>&rsquo; field has value of &lsquo;<samp>1</samp>&rsquo;.
  138. </p>
  139. </dd>
  140. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  141. <dd><p>The information about the frame corresponding to the found trace
  142. frame. This field is present only if a trace frame was found.
  143. See <a href="GDB_002fMI-Frame-Information.html#GDB_002fMI-Frame-Information">GDB/MI Frame Information</a>, for description of this field.
  144. </p>
  145. </dd>
  146. </dl>
  147. <a name="GDB-Command-54"></a>
  148. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  149. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>tfind</samp>&rsquo;.
  150. </p>
  151. <a name="g_t_002dtrace_002ddefine_002dvariable"></a>
  152. <h4 class="subheading">-trace-define-variable</h4>
  153. <a name="index-_002dtrace_002ddefine_002dvariable"></a>
  154. <a name="Synopsis-73"></a>
  155. <h4 class="subsubheading">Synopsis</h4>
  156. <div class="smallexample">
  157. <pre class="smallexample"> -trace-define-variable <var>name</var> [ <var>value</var> ]
  158. </pre></div>
  159. <p>Create trace variable <var>name</var> if it does not exist. If
  160. <var>value</var> is specified, sets the initial value of the specified
  161. trace variable to that value. Note that the <var>name</var> should start
  162. with the &lsquo;<samp>$</samp>&rsquo; character.
  163. </p>
  164. <a name="GDB-Command-55"></a>
  165. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  166. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>tvariable</samp>&rsquo;.
  167. </p>
  168. <a name="The-_002dtrace_002dframe_002dcollected-Command"></a>
  169. <h4 class="subheading">The <code>-trace-frame-collected</code> Command</h4>
  170. <a name="index-_002dtrace_002dframe_002dcollected"></a>
  171. <a name="Synopsis-74"></a>
  172. <h4 class="subsubheading">Synopsis</h4>
  173. <div class="smallexample">
  174. <pre class="smallexample"> -trace-frame-collected
  175. [--var-print-values <var>var_pval</var>]
  176. [--comp-print-values <var>comp_pval</var>]
  177. [--registers-format <var>regformat</var>]
  178. [--memory-contents]
  179. </pre></div>
  180. <p>This command returns the set of collected objects, register names,
  181. trace state variable names, memory ranges and computed expressions
  182. that have been collected at a particular trace frame. The optional
  183. parameters to the command affect the output format in different ways.
  184. See the output description table below for more details.
  185. </p>
  186. <p>The reported names can be used in the normal manner to create
  187. varobjs and inspect the objects themselves. The items returned by
  188. this command are categorized so that it is clear which is a variable,
  189. which is a register, which is a trace state variable, which is a
  190. memory range and which is a computed expression.
  191. </p>
  192. <p>For instance, if the actions were
  193. </p><div class="smallexample">
  194. <pre class="smallexample">collect myVar, myArray[myIndex], myObj.field, myPtr-&gt;field, myCount + 2
  195. collect *(int*)0xaf02bef0@40
  196. </pre></div>
  197. <p>the object collected in its entirety would be <code>myVar</code>. The
  198. object <code>myArray</code> would be partially collected, because only the
  199. element at index <code>myIndex</code> would be collected. The remaining
  200. objects would be computed expressions.
  201. </p>
  202. <p>An example output would be:
  203. </p>
  204. <div class="smallexample">
  205. <pre class="smallexample">(gdb)
  206. -trace-frame-collected
  207. ^done,
  208. explicit-variables=[{name=&quot;myVar&quot;,value=&quot;1&quot;}],
  209. computed-expressions=[{name=&quot;myArray[myIndex]&quot;,value=&quot;0&quot;},
  210. {name=&quot;myObj.field&quot;,value=&quot;0&quot;},
  211. {name=&quot;myPtr-&gt;field&quot;,value=&quot;1&quot;},
  212. {name=&quot;myCount + 2&quot;,value=&quot;3&quot;},
  213. {name=&quot;$tvar1 + 1&quot;,value=&quot;43970027&quot;}],
  214. registers=[{number=&quot;0&quot;,value=&quot;0x7fe2c6e79ec8&quot;},
  215. {number=&quot;1&quot;,value=&quot;0x0&quot;},
  216. {number=&quot;2&quot;,value=&quot;0x4&quot;},
  217. ...
  218. {number=&quot;125&quot;,value=&quot;0x0&quot;}],
  219. tvars=[{name=&quot;$tvar1&quot;,current=&quot;43970026&quot;}],
  220. memory=[{address=&quot;0x0000000000602264&quot;,length=&quot;4&quot;},
  221. {address=&quot;0x0000000000615bc0&quot;,length=&quot;4&quot;}]
  222. (gdb)
  223. </pre></div>
  224. <p>Where:
  225. </p>
  226. <dl compact="compact">
  227. <dt><code>explicit-variables</code></dt>
  228. <dd><p>The set of objects that have been collected in their entirety (as
  229. opposed to collecting just a few elements of an array or a few struct
  230. members). For each object, its name and value are printed.
  231. The <code>--var-print-values</code> option affects how or whether the value
  232. field is output. If <var>var_pval</var> is 0, then print only the names;
  233. if it is 1, print also their values; and if it is 2, print the name,
  234. type and value for simple data types, and the name and type for
  235. arrays, structures and unions.
  236. </p>
  237. </dd>
  238. <dt><code>computed-expressions</code></dt>
  239. <dd><p>The set of computed expressions that have been collected at the
  240. current trace frame. The <code>--comp-print-values</code> option affects
  241. this set like the <code>--var-print-values</code> option affects the
  242. <code>explicit-variables</code> set. See above.
  243. </p>
  244. </dd>
  245. <dt><code>registers</code></dt>
  246. <dd><p>The registers that have been collected at the current trace frame.
  247. For each register collected, the name and current value are returned.
  248. The value is formatted according to the <code>--registers-format</code>
  249. option. See the <code>-data-list-register-values</code> command for a
  250. list of the allowed formats. The default is &lsquo;<samp>x</samp>&rsquo;.
  251. </p>
  252. </dd>
  253. <dt><code>tvars</code></dt>
  254. <dd><p>The trace state variables that have been collected at the current
  255. trace frame. For each trace state variable collected, the name and
  256. current value are returned.
  257. </p>
  258. </dd>
  259. <dt><code>memory</code></dt>
  260. <dd><p>The set of memory ranges that have been collected at the current trace
  261. frame. Its content is a list of tuples. Each tuple represents a
  262. collected memory range and has the following fields:
  263. </p>
  264. <dl compact="compact">
  265. <dt><code>address</code></dt>
  266. <dd><p>The start address of the memory range, as hexadecimal literal.
  267. </p>
  268. </dd>
  269. <dt><code>length</code></dt>
  270. <dd><p>The length of the memory range, as decimal literal.
  271. </p>
  272. </dd>
  273. <dt><code>contents</code></dt>
  274. <dd><p>The contents of the memory block, in hex. This field is only present
  275. if the <code>--memory-contents</code> option is specified.
  276. </p>
  277. </dd>
  278. </dl>
  279. </dd>
  280. </dl>
  281. <a name="GDB-Command-56"></a>
  282. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  283. <p>There is no corresponding <small>GDB</small> command.
  284. </p>
  285. <a name="Example-60"></a>
  286. <h4 class="subsubheading">Example</h4>
  287. <a name="g_t_002dtrace_002dlist_002dvariables"></a>
  288. <h4 class="subheading">-trace-list-variables</h4>
  289. <a name="index-_002dtrace_002dlist_002dvariables"></a>
  290. <a name="Synopsis-75"></a>
  291. <h4 class="subsubheading">Synopsis</h4>
  292. <div class="smallexample">
  293. <pre class="smallexample"> -trace-list-variables
  294. </pre></div>
  295. <p>Return a table of all defined trace variables. Each element of the
  296. table has the following fields:
  297. </p>
  298. <dl compact="compact">
  299. <dt>&lsquo;<samp>name</samp>&rsquo;</dt>
  300. <dd><p>The name of the trace variable. This field is always present.
  301. </p>
  302. </dd>
  303. <dt>&lsquo;<samp>initial</samp>&rsquo;</dt>
  304. <dd><p>The initial value. This is a 64-bit signed integer. This
  305. field is always present.
  306. </p>
  307. </dd>
  308. <dt>&lsquo;<samp>current</samp>&rsquo;</dt>
  309. <dd><p>The value the trace variable has at the moment. This is a 64-bit
  310. signed integer. This field is absent iff current value is
  311. not defined, for example if the trace was never run, or is
  312. presently running.
  313. </p>
  314. </dd>
  315. </dl>
  316. <a name="GDB-Command-57"></a>
  317. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  318. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>tvariables</samp>&rsquo;.
  319. </p>
  320. <a name="Example-61"></a>
  321. <h4 class="subsubheading">Example</h4>
  322. <div class="smallexample">
  323. <pre class="smallexample">(gdb)
  324. -trace-list-variables
  325. ^done,trace-variables={nr_rows=&quot;1&quot;,nr_cols=&quot;3&quot;,
  326. hdr=[{width=&quot;15&quot;,alignment=&quot;-1&quot;,col_name=&quot;name&quot;,colhdr=&quot;Name&quot;},
  327. {width=&quot;11&quot;,alignment=&quot;-1&quot;,col_name=&quot;initial&quot;,colhdr=&quot;Initial&quot;},
  328. {width=&quot;11&quot;,alignment=&quot;-1&quot;,col_name=&quot;current&quot;,colhdr=&quot;Current&quot;}],
  329. body=[variable={name=&quot;$trace_timestamp&quot;,initial=&quot;0&quot;}
  330. variable={name=&quot;$foo&quot;,initial=&quot;10&quot;,current=&quot;15&quot;}]}
  331. (gdb)
  332. </pre></div>
  333. <a name="g_t_002dtrace_002dsave"></a>
  334. <h4 class="subheading">-trace-save</h4>
  335. <a name="index-_002dtrace_002dsave"></a>
  336. <a name="Synopsis-76"></a>
  337. <h4 class="subsubheading">Synopsis</h4>
  338. <div class="smallexample">
  339. <pre class="smallexample"> -trace-save [ -r ] [ -ctf ] <var>filename</var>
  340. </pre></div>
  341. <p>Saves the collected trace data to <var>filename</var>. Without the
  342. &lsquo;<samp>-r</samp>&rsquo; option, the data is downloaded from the target and saved
  343. in a local file. With the &lsquo;<samp>-r</samp>&rsquo; option the target is asked
  344. to perform the save.
  345. </p>
  346. <p>By default, this command will save the trace in the tfile format. You can
  347. supply the optional &lsquo;<samp>-ctf</samp>&rsquo; argument to save it the CTF format. See
  348. <a href="Trace-Files.html#Trace-Files">Trace Files</a> for more information about CTF.
  349. </p>
  350. <a name="GDB-Command-58"></a>
  351. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  352. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>tsave</samp>&rsquo;.
  353. </p>
  354. <a name="g_t_002dtrace_002dstart"></a>
  355. <h4 class="subheading">-trace-start</h4>
  356. <a name="index-_002dtrace_002dstart"></a>
  357. <a name="Synopsis-77"></a>
  358. <h4 class="subsubheading">Synopsis</h4>
  359. <div class="smallexample">
  360. <pre class="smallexample"> -trace-start
  361. </pre></div>
  362. <p>Starts a tracing experiment. The result of this command does not
  363. have any fields.
  364. </p>
  365. <a name="GDB-Command-59"></a>
  366. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  367. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>tstart</samp>&rsquo;.
  368. </p>
  369. <a name="g_t_002dtrace_002dstatus"></a>
  370. <h4 class="subheading">-trace-status</h4>
  371. <a name="index-_002dtrace_002dstatus"></a>
  372. <a name="Synopsis-78"></a>
  373. <h4 class="subsubheading">Synopsis</h4>
  374. <div class="smallexample">
  375. <pre class="smallexample"> -trace-status
  376. </pre></div>
  377. <p>Obtains the status of a tracing experiment. The result may include
  378. the following fields:
  379. </p>
  380. <dl compact="compact">
  381. <dt>&lsquo;<samp>supported</samp>&rsquo;</dt>
  382. <dd><p>May have a value of either &lsquo;<samp>0</samp>&rsquo;, when no tracing operations are
  383. supported, &lsquo;<samp>1</samp>&rsquo;, when all tracing operations are supported, or
  384. &lsquo;<samp>file</samp>&rsquo; when examining trace file. In the latter case, examining
  385. of trace frame is possible but new tracing experiement cannot be
  386. started. This field is always present.
  387. </p>
  388. </dd>
  389. <dt>&lsquo;<samp>running</samp>&rsquo;</dt>
  390. <dd><p>May have a value of either &lsquo;<samp>0</samp>&rsquo; or &lsquo;<samp>1</samp>&rsquo; depending on whether
  391. tracing experiement is in progress on target. This field is present
  392. if &lsquo;<samp>supported</samp>&rsquo; field is not &lsquo;<samp>0</samp>&rsquo;.
  393. </p>
  394. </dd>
  395. <dt>&lsquo;<samp>stop-reason</samp>&rsquo;</dt>
  396. <dd><p>Report the reason why the tracing was stopped last time. This field
  397. may be absent iff tracing was never stopped on target yet. The
  398. value of &lsquo;<samp>request</samp>&rsquo; means the tracing was stopped as result of
  399. the <code>-trace-stop</code> command. The value of &lsquo;<samp>overflow</samp>&rsquo; means
  400. the tracing buffer is full. The value of &lsquo;<samp>disconnection</samp>&rsquo; means
  401. tracing was automatically stopped when <small>GDB</small> has disconnected.
  402. The value of &lsquo;<samp>passcount</samp>&rsquo; means tracing was stopped when a
  403. tracepoint was passed a maximal number of times for that tracepoint.
  404. This field is present if &lsquo;<samp>supported</samp>&rsquo; field is not &lsquo;<samp>0</samp>&rsquo;.
  405. </p>
  406. </dd>
  407. <dt>&lsquo;<samp>stopping-tracepoint</samp>&rsquo;</dt>
  408. <dd><p>The number of tracepoint whose passcount as exceeded. This field is
  409. present iff the &lsquo;<samp>stop-reason</samp>&rsquo; field has the value of
  410. &lsquo;<samp>passcount</samp>&rsquo;.
  411. </p>
  412. </dd>
  413. <dt>&lsquo;<samp>frames</samp>&rsquo;</dt>
  414. <dt>&lsquo;<samp>frames-created</samp>&rsquo;</dt>
  415. <dd><p>The &lsquo;<samp>frames</samp>&rsquo; field is a count of the total number of trace frames
  416. in the trace buffer, while &lsquo;<samp>frames-created</samp>&rsquo; is the total created
  417. during the run, including ones that were discarded, such as when a
  418. circular trace buffer filled up. Both fields are optional.
  419. </p>
  420. </dd>
  421. <dt>&lsquo;<samp>buffer-size</samp>&rsquo;</dt>
  422. <dt>&lsquo;<samp>buffer-free</samp>&rsquo;</dt>
  423. <dd><p>These fields tell the current size of the tracing buffer and the
  424. remaining space. These fields are optional.
  425. </p>
  426. </dd>
  427. <dt>&lsquo;<samp>circular</samp>&rsquo;</dt>
  428. <dd><p>The value of the circular trace buffer flag. <code>1</code> means that the
  429. trace buffer is circular and old trace frames will be discarded if
  430. necessary to make room, <code>0</code> means that the trace buffer is linear
  431. and may fill up.
  432. </p>
  433. </dd>
  434. <dt>&lsquo;<samp>disconnected</samp>&rsquo;</dt>
  435. <dd><p>The value of the disconnected tracing flag. <code>1</code> means that
  436. tracing will continue after <small>GDB</small> disconnects, <code>0</code> means
  437. that the trace run will stop.
  438. </p>
  439. </dd>
  440. <dt>&lsquo;<samp>trace-file</samp>&rsquo;</dt>
  441. <dd><p>The filename of the trace file being examined. This field is
  442. optional, and only present when examining a trace file.
  443. </p>
  444. </dd>
  445. </dl>
  446. <a name="GDB-Command-60"></a>
  447. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  448. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>tstatus</samp>&rsquo;.
  449. </p>
  450. <a name="g_t_002dtrace_002dstop"></a>
  451. <h4 class="subheading">-trace-stop</h4>
  452. <a name="index-_002dtrace_002dstop"></a>
  453. <a name="Synopsis-79"></a>
  454. <h4 class="subsubheading">Synopsis</h4>
  455. <div class="smallexample">
  456. <pre class="smallexample"> -trace-stop
  457. </pre></div>
  458. <p>Stops a tracing experiment. The result of this command has the same
  459. fields as <code>-trace-status</code>, except that the &lsquo;<samp>supported</samp>&rsquo; and
  460. &lsquo;<samp>running</samp>&rsquo; fields are not output.
  461. </p>
  462. <a name="GDB-Command-61"></a>
  463. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  464. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>tstop</samp>&rsquo;.
  465. </p>
  466. <hr>
  467. <div class="header">
  468. <p>
  469. Next: <a href="GDB_002fMI-Symbol-Query.html#GDB_002fMI-Symbol-Query" accesskey="n" rel="next">GDB/MI Symbol Query</a>, Previous: <a href="GDB_002fMI-Data-Manipulation.html#GDB_002fMI-Data-Manipulation" accesskey="p" rel="previous">GDB/MI Data Manipulation</a>, Up: <a href="GDB_002fMI.html#GDB_002fMI" accesskey="u" rel="up">GDB/MI</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>
  470. </div>
  471. </body>
  472. </html>