This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH 3/4] ari, btrace: avoid unsigned long long
- From: "Metzger, Markus T" <markus dot t dot metzger at intel dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 8 Jul 2015 14:03:26 +0000
- Subject: RE: [PATCH 3/4] ari, btrace: avoid unsigned long long
- Authentication-results: sourceware.org; auth=none
- References: <1436360074-8625-1-git-send-email-markus dot t dot metzger at intel dot com> <1436360074-8625-3-git-send-email-markus dot t dot metzger at intel dot com> <559D2855 dot 9010501 at redhat dot com>
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Pedro Alves
> Sent: Wednesday, July 8, 2015 3:41 PM
> To: Metzger, Markus T
> Cc: gdb-patches@sourceware.org
> Subject: Re: [PATCH 3/4] ari, btrace: avoid unsigned long long
>
> On 07/08/2015 01:54 PM, 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 32-bit systems.
>
> Hmm, it is?
>
> I'm looking at common/common-types.h and not seeing it.
Sorry, I confused this with CORE_ADDR. The issue here is that
it is defined "unsigned long" on 64-bit systems, which is incompatible
with __u64 defined as "unsigned long long".
I'll update the commit message.
Regards,
Markus.
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul
Chairperson of the Supervisory Board: Tiffany Doon Silva
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928