From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10639 invoked by alias); 21 Apr 2010 21:17:28 -0000 Received: (qmail 10444 invoked by uid 22791); 21 Apr 2010 21:17:13 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Apr 2010 21:16:50 +0000 Received: (qmail 17290 invoked from network); 21 Apr 2010 21:16:47 -0000 Received: from unknown (HELO macbook-2.local) (stan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 21 Apr 2010 21:16:47 -0000 Message-ID: <4BCF6B34.3060209@codesourcery.com> Date: Wed, 21 Apr 2010 21:17:00 -0000 From: Stan Shebs User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: [PATCH] More tracepoint doc fixes Content-Type: multipart/mixed; boundary="------------070906020803000109050304" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00708.txt.bz2 This is a multi-part message in MIME format. --------------070906020803000109050304 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 246 Self-explanatory, I would imagine. :-) Stan 2010-04-21 Stan Shebs * gdb.texinfo (Tracepoint Actions): Mention synonymy of actions and commands. (Listing Tracepoints): Update to reflect current behavior. --------------070906020803000109050304 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="manfix-patch-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="manfix-patch-1" Content-length: 3157 Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.708 diff -p -r1.708 gdb.texinfo *** gdb.texinfo 19 Apr 2010 00:48:44 -0000 1.708 --- gdb.texinfo 21 Apr 2010 20:19:25 -0000 *************** terminate the actions list with a line c *** 9639,9644 **** --- 9639,9648 ---- far, the only defined actions are @code{collect}, @code{teval}, and @code{while-stepping}. + @code{actions} is actually equivalent to @code{commands} (@pxref{Break + Commands, ,Breakpoint Command Lists}), except that only the defined + actions are allowed; any other @value{GDBN} command is rejected. + @cindex remove actions from a tracepoint To remove all actions from a tracepoint, type @samp{actions @var{num}} and follow it immediately with @samp{end}. *************** Enter actions for tracepoint 1, one per *** 9667,9673 **** > collect bar,baz > collect $regs > while-stepping 12 ! > collect $fp, $sp > end end @end smallexample --- 9671,9677 ---- > collect bar,baz > collect $regs > while-stepping 12 ! > collect $pc, arr[i] > end end @end smallexample *************** collect all local variables. *** 9692,9698 **** You can give several consecutive @code{collect} commands, each one with a single argument, or one @code{collect} command with several ! arguments separated by commas: the effect is the same. The command @code{info scope} (@pxref{Symbols, info scope}) is particularly useful for figuring out what data to collect. --- 9696,9702 ---- You can give several consecutive @code{collect} commands, each one with a single argument, or one @code{collect} command with several ! arguments separated by commas; the effect is the same. The command @code{info scope} (@pxref{Symbols, info scope}) is particularly useful for figuring out what data to collect. *************** tracing: *** 9763,9786 **** @itemize @bullet @item its passcount as given by the @code{passcount @var{n}} command - @item - its step count as given by the @code{while-stepping @var{n}} command - @item - its action list as given by the @code{actions} command. The actions - are prefixed with an @samp{A} so as to distinguish them from commands. @end itemize @smallexample (@value{GDBP}) @b{info trace} Num Type Disp Enb Address What 1 tracepoint keep y 0x0804ab57 in foo() at main.cxx:7 pass count 1200 - step count 20 - A while-stepping 20 - A collect globfoo, $regs - A end - A collect globfoo2 - A end (@value{GDBP}) @end smallexample --- 9767,9784 ---- @itemize @bullet @item its passcount as given by the @code{passcount @var{n}} command @end itemize @smallexample (@value{GDBP}) @b{info trace} Num Type Disp Enb Address What 1 tracepoint keep y 0x0804ab57 in foo() at main.cxx:7 + while-stepping 20 + collect globfoo, $regs + end + collect globfoo2 + end pass count 1200 (@value{GDBP}) @end smallexample --------------070906020803000109050304--