This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] convert a host address to a string
> Date: Sun, 11 Jan 2009 17:30:42 +0400
> From: Joel Brobecker <brobecker@adacore.com>
>
> 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.