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] Add "debug jit" for easier tracing of JIT support internals


On Wednesday 05 January 2011 21:53:11, Paul Pluzhnikov wrote:
> One question: is '%zu' appropriate format for printing size_t ?

Nope, %z is C99.  GDB is currently written in C90.

AFAICS, the size_t you're talking about holds the size of an
object on the target, while 'size_t' is about sizes of objects
on the host.  E.g., on a 32-bit GDB (cross) debugging a 64-bit
inferior, size_t will usually be a 32-bit type.  I think it'd be
better to make that a ULONGEST throughout (and then use phex
or pulongest)

-- 
Pedro Alves


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