From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9133 invoked by alias); 13 Apr 2012 15:18:12 -0000 Received: (qmail 9124 invoked by uid 22791); 13 Apr 2012 15:18:11 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Apr 2012 15:17:54 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3DFHUEe028072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 13 Apr 2012 11:17:30 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q3DFHRXs031593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Apr 2012 11:17:29 -0400 Message-ID: <4F884387.90807@redhat.com> Date: Fri, 13 Apr 2012 15:18:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 MIME-Version: 1.0 To: Pierre Muller CC: "'Patrick Monnerat'" , insight@sourceware.org, roland@onevision.com Subject: Re: [PATCH] print format does not match argument type References: <4F8443D1.9080105@onevision.com> <4F845F7E.1010603@redhat.com> <000001cd1984$fce97c30$f6bc7490$@muller@ics-cnrs.unistra.fr> In-Reply-To: <000001cd1984$fce97c30$f6bc7490$@muller@ics-cnrs.unistra.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00015.txt.bz2 On 04/13/2012 07:52 AM, Pierre Muller wrote: > The gdb/utils.c function called host_address_to_string > was created to allow printing of host pointer > without need to bother with %llX or typecasts... > > It does add a '0x' at the start of the > generated pchar, but I don't think that this is a big problem. > > This second field (ar[1]) is probably added to avoid confusion between > type with same name... > > Should we use this patch? Yes, thank you for pointing that out. I just *knew* there had to be a way to do this "safely." [As safe as it can be to pass host pointers into the interpreter at least.] Keith