From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27376 invoked by alias); 17 Sep 2011 14:35:32 -0000 Received: (qmail 27187 invoked by uid 22791); 17 Sep 2011 14:35:31 -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; Sat, 17 Sep 2011 14:35:15 +0000 Received: by fxh17 with SMTP id 17so2896539fxh.0 for ; Sat, 17 Sep 2011 07:35:14 -0700 (PDT) Received: by 10.223.56.216 with SMTP id z24mr1334889fag.4.1316270114131; Sat, 17 Sep 2011 07:35:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.123.2 with HTTP; Sat, 17 Sep 2011 07:34:33 -0700 (PDT) In-Reply-To: <20110916202712.GB17681@adacore.com> References: <83iposvn2o.fsf@gnu.org> <20110916202712.GB17681@adacore.com> From: Hui Zhu Date: Sat, 17 Sep 2011 14:40:00 -0000 Message-ID: Subject: Re: [doc/tracepoint] Add a note for assigning values of inferior to trace state variables To: Joel Brobecker , Eli Zaretskii , gdb-patches ml , Pedro Alves 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: 2011-09/txt/msg00341.txt.bz2 The issue is: 2d000b setv 260003 reg 1620 ext 27 end Setv before put value to the stack. After convert will OK. Do you have idea on it? Thanks, Hui On Sat, Sep 17, 2011 at 04:27, Joel Brobecker wrote: >> > this issue can be handle by convert value to (uint64_t), for example: >> > teval $tmp=3D(uint64_t)a >> >> Isn't this specific to the platform where this runs? =A0I don't think we >> should have platform-specific information, and such minor details at >> that, in general sections. > > One of the things that struck me when I read the diff is that > I asked myself why this conversion is necessary. The patch is > only a small piece of the documentation, so perhaps the reasons > are clear already. =A0But otherwise, it might be worth explaining. > > -- > Joel >