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
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org, Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Date: Thu, 8 Jan 2009 12:01:56 +0100
- Subject: 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.