Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

527 lines
21KB

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