From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5354 invoked by alias); 8 Jan 2009 12:49:54 -0000 Received: (qmail 5339 invoked by uid 22791); 8 Jan 2009 12:49:52 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Jan 2009 12:49:47 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id n08Cn722028243; Thu, 8 Jan 2009 13:49:07 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id n08Cn6WB031507; Thu, 8 Jan 2009 13:49:06 +0100 (CET) Date: Thu, 08 Jan 2009 12:49:00 -0000 Message-Id: <200901081249.n08Cn6WB031507@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: Kai.Tietz@onevision.com CC: brobecker@adacore.com, gdb-patches@sourceware.org In-reply-to: (message from Kai Tietz on Thu, 8 Jan 2009 12:01:56 +0100) Subject: Re: [RFC] convert a host address to a string References: 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/msg00148.txt.bz2 > From: Kai Tietz > Date: Thu, 8 Jan 2009 12:01:56 +0100 > > 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); Well, the PRIxxx macros are ISO C99 inventions, so we can't assume they're generally available. Guess that could be mitigated by importing inttypes module from gnulib.