From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6773 invoked by alias); 6 Sep 2013 08:17:36 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 6760 invoked by uid 89); 6 Sep 2013 08:17:36 -0000 Received: from anubis.se.axis.com (HELO anubis.se.axis.com) (195.60.68.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Sep 2013 08:17:36 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: anubis.se.axis.com Received: from localhost (localhost [127.0.0.1]) by anubis.se.axis.com (Postfix) with ESMTP id 80EAB19DC9; Fri, 6 Sep 2013 10:17:33 +0200 (CEST) Received: from anubis.se.axis.com ([127.0.0.1]) by localhost (anubis.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qt+eYaXCdDvX; Fri, 6 Sep 2013 10:17:32 +0200 (CEST) Received: from boulder.se.axis.com (boulder.se.axis.com [10.0.2.104]) by anubis.se.axis.com (Postfix) with ESMTP id CD31419CF1; Fri, 6 Sep 2013 10:17:32 +0200 (CEST) Received: from boulder.se.axis.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 49CD879F; Fri, 6 Sep 2013 10:17:32 +0200 (CEST) Received: from thoth.se.axis.com (thoth.se.axis.com [10.0.2.173]) by boulder.se.axis.com (Postfix) with ESMTP id 3EA6D79D; Fri, 6 Sep 2013 10:17:32 +0200 (CEST) Received: from xmail2.se.axis.com (xmail2.se.axis.com [10.0.5.74]) by thoth.se.axis.com (Postfix) with ESMTP id 3D22A3404E; Fri, 6 Sep 2013 10:17:32 +0200 (CEST) Received: from lnxricardw.se.axis.com (10.88.7.1) by xmail2.se.axis.com (10.0.5.74) with Microsoft SMTP Server (TLS) id 8.2.255.0; Fri, 6 Sep 2013 10:17:32 +0200 Date: Fri, 06 Sep 2013 08:17:00 -0000 From: Ricard Wanderlof To: Pedro Alves CC: "gdb-patches@sourceware.org" Subject: Re: [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c In-Reply-To: <5225F6B0.3020208@redhat.com> Message-ID: References: <5225F6B0.3020208@redhat.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8BIT X-SW-Source: 2013-09/txt/msg00205.txt.bz2 On Tue, 3 Sep 2013, Pedro Alves wrote: > On 09/03/2013 03:17 PM, Ricard Wanderlof wrote: > >> 2013-09-03 Ricard Wanderlof >> >> * cris-tdep.c: Use host independent typedef for elf_greg_t. > > Write, e.g.: > > * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]. > > OK with that change. Comitted now. /Ricard Trivial patch to remove dependency on host unsigned long type from cris-tdep.c. 2013-09-06 Ricard Wanderlof * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4] diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 03041e4..80ab1b8 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -3820,7 +3820,7 @@ cris_delayed_get_disassembler (bfd_vma addr, struct disassemble_info *info) } /* Copied from . */ -typedef unsigned long elf_greg_t; +typedef unsigned char elf_greg_t[4]; /* Same as user_regs_struct struct in . */ #define CRISV10_ELF_NGREG 35 -- Ricard Wolf Wanderlöf ricardw(at)axis.com Axis Communications AB, Lund, Sweden www.axis.com Phone +46 46 272 2016 Fax +46 46 13 61 30