From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6252 invoked by alias); 11 Apr 2013 06:19:47 -0000 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 Received: (qmail 6241 invoked by uid 89); 11 Apr 2013 06:19:46 -0000 X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 11 Apr 2013 06:19:46 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UQArI-00056w-SK from Hui_Zhu@mentor.com for gdb-patches@sourceware.org; Wed, 10 Apr 2013 23:19:44 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 10 Apr 2013 23:19:45 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Wed, 10 Apr 2013 23:19:43 -0700 Message-ID: <516655FC.6070206@mentor.com> Date: Thu, 11 Apr 2013 10:49:00 -0000 From: Hui Zhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0 MIME-Version: 1.0 To: gdb-patches ml Subject: [PATCH] store trace default-collect to target [6/6] test References: <51665508.5050706@mentor.com> In-Reply-To: <51665508.5050706@mentor.com> Content-Type: multipart/mixed; boundary="------------000705020406070401000303" X-Virus-Found: No X-SW-Source: 2013-04/txt/msg00315.txt.bz2 --------------000705020406070401000303 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 435 Hi, This patch add test about default-collect to disconnected-tracing.exp for remote and tstatus.exp for tfile. I test them with: make check RUNTESTFLAGS="--target_board=native-gdbserver disconnected-tracing.exp tstatus.exp" Thanks, Hui 2013-04-11 Hui Zhu * gdb.trace/disconnected-tracing.exp (disconnected_tracing): Add test for default-collect. * gdb.trace/tstatus.exp: Add test for default-collect. --------------000705020406070401000303 Content-Type: text/plain; charset="us-ascii"; name="defc-doc.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="defc-doc.txt" Content-length: 1713 --- a/doc/gdb.texinfo +++ b/doc/gdb.texinfo @@ -37792,8 +37792,10 @@ encoded). @value{GDBN} will continue to @itemx QTDP @itemx QTDPsrc @itemx QTDV +@itemx QTDDCsrc @itemx qTfP @itemx qTfV +@itemx qTDC @itemx QTFrame @itemx qTMinFTPILen @@ -38382,6 +38384,22 @@ the option of not using this packet for target should simply create the trace state variables as they are mentioned in expressions. +@item QTDDCsrc:@var{bytes} +@cindex define default collect, remote request +@cindex @samp{QTDDCsrc} packet +@var{bytes} is the string, encoded in hexadecimal. +It specify a source string of default collect. +The target does not need to do anything with source strings except +report them back as part of the replies to the @samp{qTDC} query packets. + +Replies: +@table @samp +@item OK +The packet was understood and carried out. +@item @w{} +The packet was not recognized. +@end table + @item QTFrame:@var{n} @cindex @samp{QTFrame} packet Select the @var{n}'th tracepoint frame from the buffer, and use the @@ -38637,6 +38655,24 @@ and multiple @code{qTsV} to get addition these packets follow the syntax of the @code{QTDV} packets that define trace state variables. +@item qTDC +@cindex @samp{qTDC} packet +@itemx qTDC +@cindex @samp{qTDC} packet +These packets request default collect on the target. Replies to +this packet generally take the form of the @code{QTDDCsrc} packet that +define default collect. + +Replies: +@table @samp +@item DC@var{bytes} +@var{bytes} is the string, encoded in hexadecimal. It take the form of +the @code{QTDDCsrc} packet that define default collect. + +@item @w{} +The packet was not recognized. +@end table + @item qTfSTM @itemx qTsSTM @anchor{qTfSTM} --------------000705020406070401000303--