From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15197 invoked by alias); 10 Sep 2010 13:57:45 -0000 Received: (qmail 15184 invoked by uid 22791); 10 Sep 2010 13:57:45 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.155) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Sep 2010 13:57:41 +0000 Received: from md1.u-strasbg.fr (md1.u-strasbg.fr [IPv6:2001:660:2402::186]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o8ADvbAU060626 for ; Fri, 10 Sep 2010 15:57:37 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms5.u-strasbg.fr [IPv6:2001:660:2402:d::14]) by md1.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id o8ADvbbV044749 for ; Fri, 10 Sep 2010 15:57:37 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id o8ADvaX2076510 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 10 Sep 2010 15:57:37 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: Subject: [RFA 1/5] New patches to support --enable-targets=all for mingw64 Date: Fri, 10 Sep 2010 14:06:00 -0000 Message-ID: <003601cb50f0$23ef75a0$6bce60e0$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2010-09/txt/msg00219.txt.bz2 I tried to compile GDB with --enable-targets=all for x86_64-w64-mingw32 target. As 'long' type is 4-byte while pointer type is 8-byte, this target is quite sensitive to so 'dirty' code lying around like casting 'long' or 'unsigned long' to pointers... I had to fix several sources to be able to successfully compile GDB with those configuration options. 1) Replace remaining #include by #inlcude in remote-m32r-sdi.c and m32r-rom.c I apologize to the person that already submitted a similar change, but I was unable to find it again. I vaguely remember that we already discussed this once, but there are still two inlcudes in gdb HEAD. The patch below fixes this. Pierre Muller Pascal language support maintainer for GDB 2010-09-10 Pierre Muller * m32r-rom.c: Replace winsock.h with winsock2.h header. * remote-m32r-sdi.c: Replace winsock.h by winsock2.h. Index: src/gdb/m32r-rom.c =================================================================== RCS file: /cvs/src/src/gdb/m32r-rom.c,v retrieving revision 1.40 diff -u -p -r1.40 m32r-rom.c --- src/gdb/m32r-rom.c 1 Jan 2010 07:31:37 -0000 1.40 +++ src/gdb/m32r-rom.c 9 Sep 2010 16:39:58 -0000 @@ -45,7 +45,7 @@ * All this stuff just to get my host computer's IP address! */ #ifdef __MINGW32__ -#include +#include #else #include #include /* for hostent */ Index: src/gdb/remote-m32r-sdi.c =================================================================== RCS file: /cvs/src/src/gdb/remote-m32r-sdi.c,v retrieving revision 1.52 diff -u -p -r1.52 remote-m32r-sdi.c --- src/gdb/remote-m32r-sdi.c 6 Sep 2010 13:59:02 -0000 1.52 +++ src/gdb/remote-m32r-sdi.c 9 Sep 2010 16:39:59 -0000 @@ -32,7 +32,7 @@ #include #include #ifdef __MINGW32__ -#include +#include #else #include #endif