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: [patch] Can't build ppc32 GDB


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


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