From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20773 invoked by alias); 16 Sep 2011 08:57:37 -0000 Received: (qmail 20763 invoked by uid 22791); 16 Sep 2011 08:57:36 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f41.google.com (HELO mail-fx0-f41.google.com) (209.85.161.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Sep 2011 08:57:17 +0000 Received: by fxh17 with SMTP id 17so1656180fxh.0 for ; Fri, 16 Sep 2011 01:57:16 -0700 (PDT) Received: by 10.223.37.81 with SMTP id w17mr1167105fad.91.1316163436143; Fri, 16 Sep 2011 01:57:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.123.2 with HTTP; Fri, 16 Sep 2011 01:56:36 -0700 (PDT) From: Hui Zhu Date: Fri, 16 Sep 2011 09:07:00 -0000 Message-ID: Subject: [doc/tracepoint] Add a note for assigning values of inferior to trace state variables To: gdb-patches ml Cc: Eli Zaretskii Content-Type: text/plain; charset=ISO-8859-1 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: 2011-09/txt/msg00288.txt.bz2 Hi, I talk about a bug about assigning values of inferior to trace state variables http://sources.redhat.com/ml/gdb/2011-07/msg00009.html this issue can be handle by convert value to (uint64_t), for example: teval $tmp=(uint64_t)a So I make a patch to update the doc. Please help me review it. Thanks, Hui 2011-09-16 Hui Zhu * gdb.texinfo (Tracepoint Action Lists): Add a note for assigning values of inferior to trace state variables. --- doc/gdb.texinfo | 6 ++++++ 1 file changed, 6 insertions(+) --- a/doc/gdb.texinfo +++ b/doc/gdb.texinfo @@ -10321,6 +10321,12 @@ are discarded, so this is mainly useful state variables (@pxref{Trace State Variables}) without adding those values to the trace buffer, as would be the case if the @code{collect} action were used. +Please note that if you want assigning values of inferior to trace state +variables, please convert it to unsigned 64bit first. For example: + +@smallexample +>teval $c=(uint64_t)jiffies_64 +@end smallexample @kindex while-stepping @r{(tracepoints)} @item while-stepping @var{n}