[patch] Can't build ppc32 GDB

Daniel Jacobowitz drow@false.org
Fri May 5 16:30:00 GMT 2006


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



More information about the Gdb-patches mailing list