From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8492 invoked by alias); 8 Jan 2009 11:02:14 -0000 Received: (qmail 8478 invoked by uid 22791); 8 Jan 2009 11:02:13 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from outdoor.onevision.de (HELO outdoor.onevision.de) (212.77.172.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Jan 2009 11:02:07 +0000 Received: from sanders.onevision.de (moonrace [212.77.172.62]) by outdoor.onevision.de (8.14.3/8.13.7/ROSCH/DDB) with ESMTP id n08B21Fi027255; Thu, 8 Jan 2009 12:02:02 +0100 In-Reply-To: <20090108104800.GS3664@adacore.com> To: Joel Brobecker Cc: gdb-patches@sourceware.org, Mark Kettenis Subject: Re: [RFC] convert a host address to a string MIME-Version: 1.0 Message-ID: From: Kai Tietz Date: Thu, 08 Jan 2009 11:02:00 -0000 Content-Type: text/plain; charset="US-ASCII" 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: 2009-01/txt/msg00143.txt.bz2 Joel Brobecker wrote on 08.01.2009 11:48:00: > > Why not simply use stdint.h (gstdint.h) for this? > > Could you give more details? I'm not sure what you mean exactly. > > Thanks, > -- > Joel > By it you can use standard ISO type intptr_t. And I missed to add inttypes.h. By this you could simply use PRIXPTR for printing hex pointer failues. E.g. fprint (fp, "0x%" PRIXPTR, (intptr_t) address); Cheers, Kai | (\_/) This is Bunny. Copy and paste Bunny | (='.'=) into your signature to help him gain | (")_(") world domination.