This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] gdb_stdint.h.
- From: Jim Blandy <jimb at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 05 May 2006 12:32:17 -0700
- Subject: Re: [rfc] gdb_stdint.h.
- References: <20060505172713.GF31029@nevyn.them.org>
Daniel Jacobowitz <drow@false.org> writes:
> You want uintptr_t? I got your uintptr_t right here.
>
> This patch creates a header in the build directory named gdb_stdint.h.
> It defines all of the things which a stdint.h ought to define. It uses
> the system's stdint.h if there is one, and provides anything missing,
> up to and including the whole file.
>
> There is, of course, a huge hairy chunk of m4 and portability knowledge
> that you don't see in this patch. That's because it's already in
> config/ and was written for GCC. I'm OK with that :-) It means it's
> quite well tested at this point.
>
> This would be enough to allow us to start using uint64_t, uintptr_t,
> et cetera in the common code of GDB. Which, in my opinion, would be a
> good idea. They're nice to have around.
Oh, I double-plus-good-feeling <stdint.h>. Criminal not to have it in
the language from the beginning.