From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30211 invoked by alias); 15 Aug 2010 07:17:03 -0000 Received: (qmail 30200 invoked by uid 22791); 15 Aug 2010 07:17:02 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 15 Aug 2010 07:16:56 +0000 Received: by wwb34 with SMTP id 34so4787462wwb.12 for ; Sun, 15 Aug 2010 00:16:54 -0700 (PDT) Received: by 10.216.145.198 with SMTP id p48mr3174365wej.18.1281856614414; Sun, 15 Aug 2010 00:16:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.186.205 with HTTP; Sun, 15 Aug 2010 00:16:34 -0700 (PDT) From: Hui Zhu Date: Sun, 15 Aug 2010 07:17:00 -0000 Message-ID: Subject: [RFA/RFC] tracepoint gdbrsp: add -1 introduce for QTFrame:@var{n} To: gdb-patches ml Cc: Eli Zaretskii Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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-08/txt/msg00209.txt.bz2 Hi, I found that there is not introduce for -1 in QTFrame:@var{n}.So I add one. For example: (gdb) tfind none Sending packet: $QTFrame:ffffffff#fa...Packet received: OK No longer looking at any trace frame Sending packet: $g#67...Packet received: 000000000000000000000000000000000000000000000000000000000000000000000000000= 0000000000000000000000000000000000000c05e33c9ff7f00000000000000000000000000= 000000000000000000000000000002000000000000000000000000000000000000000000000= 0000000000000000000000000000000f02ad7a8537f000000020000330000002b0000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000007f03000000000000ffff00000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 00000000000000801f00003b00000000000000 Sending packet: $m7f53a8d72af0,1#2c...Packet received: 48 Sending packet: $m7f53a8d72af0,1#2c...Packet received: 48 Sending packet: $m7f53a8d72af0,9#34...Packet received: 4889e7e82806000049 #0 0x00007f53a8d72af0 in ?? () from /lib64/ld-linux-x86-64.so.2 BTW, I found that tracepoint gdbrsp use a lot of "int", I think it will be not very friendly to cross compile debug. What do you think about it? Thanks, Hui 2010-08-15 Hui Zhu * gdb.texinfo (Tracepoint Packets): add introduce for -1. --- doc/gdb.texinfo | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/doc/gdb.texinfo +++ b/doc/gdb.texinfo @@ -33133,6 +33133,18 @@ The selected trace frame records a hit o @end table +If @var{n} is -1, it mean that stop debugging trace snapshots, +resume live debugging. + +Replies: +@table @samp +@item OK +The packet was understood and carried out. +@item E @var{NN} +A badly formed request was detected, or an error was encountered while +relocating the instruction. +@end table + @item QTFrame:pc:@var{addr} Like @samp{QTFrame:@var{n}}, but select the first tracepoint frame after t= he currently selected frame whose PC is @var{addr};