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


Joel Brobecker <brobecker@adacore.com> 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);

Cheers,
Kai

|  (\_/)  This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.


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