From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8143 invoked by alias); 3 Sep 2013 14:17:08 -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 8129 invoked by uid 89); 3 Sep 2013 14:17:07 -0000 Received: from ra.se.axis.com (HELO ra.se.axis.com) (195.60.68.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Sep 2013 14:17:07 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: ra.se.axis.com Received: from localhost (localhost [127.0.0.1]) by ra.se.axis.com (Postfix) with ESMTP id 0A783349611 for ; Tue, 3 Sep 2013 16:17:04 +0200 (CEST) Received: from ra.se.axis.com ([127.0.0.1]) by localhost (ra.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fn7UnN7QeF+x for ; Tue, 3 Sep 2013 16:17:03 +0200 (CEST) Received: from boulder.se.axis.com (boulder.se.axis.com [10.0.2.104]) by ra.se.axis.com (Postfix) with ESMTP id 3787434960D for ; Tue, 3 Sep 2013 16:17:03 +0200 (CEST) Received: from boulder.se.axis.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 1D34646D for ; Tue, 3 Sep 2013 16:17:03 +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 0EE801F0 for ; Tue, 3 Sep 2013 16:17:03 +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 0D53F3404E for ; Tue, 3 Sep 2013 16:17:03 +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; Tue, 3 Sep 2013 16:17:02 +0200 Date: Tue, 03 Sep 2013 14:17:00 -0000 From: Ricard Wanderlof To: Subject: [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c (fwd) Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_002_alpineDEB200130903153345010770lnxricardwseaxiscom_" Content-ID: X-SW-Source: 2013-09/txt/msg00072.txt.bz2 --_002_alpineDEB200130903153345010770lnxricardwseaxiscom_ Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: Content-length: 1172 This patch removes a host system dependency from cris-tdep.c . The original version of this patch has been floating around for several years now in our local repository so it's way overdue pushing upstream. Tested by doing a small debugging session against a remote gdbserver running on a target system. Patch included inline for review and as attachement for use. Signed-off-by: Ricard Wanderlof 2013-09-03 Ricard Wanderlof * cris-tdep.c: Use host independent typedef for elf_greg_t. 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 -- 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 --_002_alpineDEB200130903153345010770lnxricardwseaxiscom_ Content-Type: text/x-diff; name="cris-head-no-hostdep.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: patch file.patch Content-Disposition: attachment; filename="cris-head-no-hostdep.patch"; size=496; creation-date="Tue, 03 Sep 2013 15:50:39 GMT"; modification-date="Tue, 03 Sep 2013 15:50:39 GMT" Content-length: 586 ZGlmZiAtLWdpdCBhL2dkYi9jcmlzLXRkZXAuYyBiL2dkYi9jcmlzLXRkZXAu Yw0KaW5kZXggMDMwNDFlNC4uODBhYjFiOCAxMDA2NDQNCi0tLSBhL2dkYi9j cmlzLXRkZXAuYw0KKysrIGIvZ2RiL2NyaXMtdGRlcC5jDQpAQCAtMzgyMCw3 ICszODIwLDcgQEAgY3Jpc19kZWxheWVkX2dldF9kaXNhc3NlbWJsZXIgKGJm ZF92bWEgYWRkciwgc3RydWN0IGRpc2Fzc2VtYmxlX2luZm8gKmluZm8pDQog fQ0KIA0KIC8qIENvcGllZCBmcm9tIDxhc20vZWxmLmg+LiAgKi8NCi10eXBl ZGVmIHVuc2lnbmVkIGxvbmcgZWxmX2dyZWdfdDsNCit0eXBlZGVmIHVuc2ln bmVkIGNoYXIgZWxmX2dyZWdfdFs0XTsNCiANCiAvKiBTYW1lIGFzIHVzZXJf cmVnc19zdHJ1Y3Qgc3RydWN0IGluIDxhc20vdXNlci5oPi4gICovDQogI2Rl ZmluZSBDUklTVjEwX0VMRl9OR1JFRyAzNQ0K --_002_alpineDEB200130903153345010770lnxricardwseaxiscom_--