This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 2/2] ari, btrace: avoid unsigned long long
- From: Pedro Alves <palves at redhat dot com>
- To: Markus Metzger <markus dot t dot metzger at intel dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 09 Jul 2015 12:15:12 +0100
- Subject: Re: [PATCH v2 2/2] ari, btrace: avoid unsigned long long
- Authentication-results: sourceware.org; auth=none
- References: <1436422132-8936-1-git-send-email-markus dot t dot metzger at intel dot com> <1436422132-8936-2-git-send-email-markus dot t dot metzger at intel dot com>
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