This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]