From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16798 invoked by alias); 11 Jan 2009 13:53:52 -0000 Received: (qmail 16787 invoked by uid 22791); 11 Jan 2009 13:53:49 -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; Sun, 11 Jan 2009 13:53:13 +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 n0BDqu4A016967; Sun, 11 Jan 2009 14:52:56 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id n0BDquqM026391; Sun, 11 Jan 2009 14:52:56 +0100 (CET) Date: Sun, 11 Jan 2009 13:53:00 -0000 Message-Id: <200901111352.n0BDquqM026391@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: brobecker@adacore.com CC: ktietz70@googlemail.com, Kai.Tietz@onevision.com, gdb-patches@sourceware.org In-reply-to: <20090111133042.GU24105@adacore.com> (message from Joel Brobecker on Sun, 11 Jan 2009 17:30:42 +0400) Subject: Re: [RFC] convert a host address to a string 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> <20090111133042.GU24105@adacore.com> 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/msg00244.txt.bz2 > Date: Sun, 11 Jan 2009 17:30:42 +0400 > From: Joel Brobecker > > 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... Please do. I'm glad I can say that I'm not running Windows on any machine I own, so I have no way to test.