This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Can't build ppc32 GDB
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: pgilliam at us dot ibm dot com, gdb-patches at sources dot redhat dot com
- Date: Fri, 5 May 2006 12:29:55 -0400
- Subject: Re: [patch] Can't build ppc32 GDB
- References: <1145924338.18934.45.camel@dufur.beaverton.ibm.com> <1145924593.18934.48.camel@dufur.beaverton.ibm.com> <200604251938.k3PJc9dl014571@elgar.sibelius.xs4all.nl> <1146699224.16180.4.camel@dufur.beaverton.ibm.com> <25493.192.87.1.22.1146726734.squirrel@webmail.xs4all.nl>
On Thu, May 04, 2006 at 09:12:14AM +0200, Mark Kettenis wrote:
> This is where the new ISO C99 <stdint.h> types come in handy. Instead of
> casting to CORE_ADDR, try casting to uintptr_t.
Can we rely on <stdint.h> on GNU/Linux? I know we can't in general.
Conveniently, I have a patch on one of my pending branches that
provides a gdb_stdint.h.
But for this case there's an easier solution, which IIRC is roughly
what Paul did: I can pretty much promise you that sizeof (long) ==
sizeof (void *) on any GNU/Linux system. So either I can merge
gdb_stdint.h and we can start using that, which might be a nice idea in
general, or for now I think "long" is fine.
--
Daniel Jacobowitz
CodeSourcery