• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/gdb/
1<html lang="en">
2<head>
3<title>Tracepoint Passcounts - Debugging with GDB</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Debugging with GDB">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Set-Tracepoints.html#Set-Tracepoints" title="Set Tracepoints">
9<link rel="prev" href="Enable-and-Disable-Tracepoints.html#Enable-and-Disable-Tracepoints" title="Enable and Disable Tracepoints">
10<link rel="next" href="Tracepoint-Conditions.html#Tracepoint-Conditions" title="Tracepoint Conditions">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12<!--
13Copyright (C) 1988-2013 Free Software Foundation, Inc.
14
15Permission is granted to copy, distribute and/or modify this document
16under the terms of the GNU Free Documentation License, Version 1.3 or
17any later version published by the Free Software Foundation; with the
18Invariant Sections being ``Free Software'' and ``Free Software Needs
19Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
20and with the Back-Cover Texts as in (a) below.
21
22(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
23this GNU Manual.  Buying copies from GNU Press supports the FSF in
24developing GNU and promoting software freedom.''
25-->
26<meta http-equiv="Content-Style-Type" content="text/css">
27<style type="text/css"><!--
28  pre.display { font-family:inherit }
29  pre.format  { font-family:inherit }
30  pre.smalldisplay { font-family:inherit; font-size:smaller }
31  pre.smallformat  { font-family:inherit; font-size:smaller }
32  pre.smallexample { font-size:smaller }
33  pre.smalllisp    { font-size:smaller }
34  span.sc    { font-variant:small-caps }
35  span.roman { font-family:serif; font-weight:normal; } 
36  span.sansserif { font-family:sans-serif; font-weight:normal; } 
37--></style>
38<link rel="stylesheet" type="text/css" href="../cs.css">
39</head>
40<body>
41<div class="node">
42<a name="Tracepoint-Passcounts"></a>
43<p>
44Next:&nbsp;<a rel="next" accesskey="n" href="Tracepoint-Conditions.html#Tracepoint-Conditions">Tracepoint Conditions</a>,
45Previous:&nbsp;<a rel="previous" accesskey="p" href="Enable-and-Disable-Tracepoints.html#Enable-and-Disable-Tracepoints">Enable and Disable Tracepoints</a>,
46Up:&nbsp;<a rel="up" accesskey="u" href="Set-Tracepoints.html#Set-Tracepoints">Set Tracepoints</a>
47<hr>
48</div>
49
50<h4 class="subsection">13.1.3 Tracepoint Passcounts</h4>
51
52     
53<a name="index-passcount-779"></a>
54<a name="index-tracepoint-pass-count-780"></a>
55<dl><dt><code>passcount </code><span class="roman">[</span><var>n</var> <span class="roman">[</span><var>num</var><span class="roman">]]</span><dd>Set the <dfn>passcount</dfn> of a tracepoint.  The passcount is a way to
56automatically stop a trace experiment.  If a tracepoint's passcount is
57<var>n</var>, then the trace experiment will be automatically stopped on
58the <var>n</var>'th time that tracepoint is hit.  If the tracepoint number
59<var>num</var> is not specified, the <code>passcount</code> command sets the
60passcount of the most recently defined tracepoint.  If no passcount is
61given, the trace experiment will run until stopped explicitly by the
62user.
63
64     <p>Examples:
65
66     <pre class="smallexample">          (gdb) <b>passcount 5 2</b> // Stop on the 5th execution of
67     <br>                                   <code>// tracepoint 2</code><br>
68          
69          (gdb) <b>passcount 12</b>  // Stop on the 12th execution of the
70     <br>                                   <code>// most recently defined tracepoint.</code><br>
71          (gdb) <b>trace foo</b>
72          (gdb) <b>pass 3</b>
73          (gdb) <b>trace bar</b>
74          (gdb) <b>pass 2</b>
75          (gdb) <b>trace baz</b>
76          (gdb) <b>pass 1</b>        // Stop tracing when foo has been
77     <br>                                    <code>// executed 3 times OR when bar has</code><br>
78     <br>                                    <code>// been executed 2 times</code><br>
79     <br>                                    <code>// OR when baz has been executed 1 time.</code><br>
80</pre>
81     </dl>
82
83   </body></html>
84
85