[PATCH v2 2/2] ari, btrace: avoid unsigned long long

Pedro Alves palves@redhat.com
Thu Jul 9 11:15:00 GMT 2015


On 07/09/2015 07:08 AM, Markus Metzger wrote:
> Fix the ARI warning about the use of unsigned long long.  We can't use ULONGEST
> as this is defined unsigned long on 64-bit systems.

But, what exactly would break?

> Use unsigned long to hold
> the buffer size inside GDB 

Why not use size_t instead then?

> and __u64 when interfacing the kernel.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list