From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13901 invoked by alias); 13 Apr 2012 15:25:31 -0000 Received: (qmail 13889 invoked by uid 22791); 13 Apr 2012 15:25:28 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.154) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Apr 2012 15:25:16 +0000 Received: from md2.u-strasbg.fr (md2.u-strasbg.fr [IPv6:2001:660:2402::187]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id q3DFOs61055674 ; Fri, 13 Apr 2012 17:24:54 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms4.u-strasbg.fr [130.79.204.13]) by md2.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id q3DFOrhD075743 ; Fri, 13 Apr 2012 17:24:53 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id q3DFOqvr019944 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) ; Fri, 13 Apr 2012 17:24:52 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Keith Seitz'" Cc: "'Patrick Monnerat'" , , References: <4F8443D1.9080105@onevision.com> <4F845F7E.1010603@redhat.com> <000001cd1984$fce97c30$f6bc7490$@muller@ics-cnrs.unistra.fr> <4F884387.90807@redhat.com> In-Reply-To: <4F884387.90807@redhat.com> Subject: RE: [PATCH] print format does not match argument type Date: Fri, 13 Apr 2012 15:25:00 -0000 Message-ID: <000001cd1989$9387b1d0$ba971570$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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/msg00016.txt.bz2 > -----Message d'origine----- > De=A0: insight-owner@sourceware.org [mailto:insight-owner@sourceware.org]= De > la part de Keith Seitz > Envoy=E9=A0: vendredi 13 avril 2012 17:17 > =C0=A0: Pierre Muller > Cc=A0: 'Patrick Monnerat'; insight@sourceware.org; roland@onevision.com > Objet=A0: Re: [PATCH] print format does not match argument type >=20 > 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? >=20 > 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.] Patch committed in http://sourceware.org/ml/gdb-cvs/2012-04/msg00086.html Thanks=20 Pierre