From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5429 invoked by alias); 11 Jan 2009 13:31:30 -0000 Received: (qmail 5421 invoked by uid 22791); 11 Jan 2009 13:31:29 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 11 Jan 2009 13:30:53 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 1AB0C2A96A8; Sun, 11 Jan 2009 08:30:52 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8hC5pPcANFHK; Sun, 11 Jan 2009 08:30:52 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 4C73C2A96A7; Sun, 11 Jan 2009 08:30:49 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 0FDACE7ACD; Sun, 11 Jan 2009 17:30:42 +0400 (RET) Date: Sun, 11 Jan 2009 13:31:00 -0000 From: Joel Brobecker To: Mark Kettenis Cc: ktietz70@googlemail.com, Kai.Tietz@onevision.com, gdb-patches@sourceware.org Subject: Re: [RFC] convert a host address to a string Message-ID: <20090111133042.GU24105@adacore.com> References: <20090109131227.GL24105@adacore.com> <20090110071137.GN24105@adacore.com> <90baa01f0901100530t6590599bucfaa12aea8898c57@mail.gmail.com> <200901101403.n0AE3PYP005895@brahms.sibelius.xs4all.nl> <90baa01f0901100614n31183205vbd43992f8b8f574e@mail.gmail.com> <200901101421.n0AELbwx014532@brahms.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200901101421.n0AELbwx014532@brahms.sibelius.xs4all.nl> User-Agent: Mutt/1.4.2.2i 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/msg00243.txt.bz2 Mark, > You're right. So something like: > > { > char *result = get_cell (); > xsnprintf (result, CELLSIZE, "0x%s", phex_nz((uintptr_t)addr, sizeof(addr))); > return result; > } > > perhaps? Thanks for the suggestion. Let me know if you'd like me to test your patch and then commit it for you... -- Joel