From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1725 invoked by alias); 8 Feb 2008 23:05:52 -0000 Received: (qmail 1717 invoked by uid 22791); 8 Feb 2008 23:05:51 -0000 X-Spam-Check-By: sourceware.org Received: from flagship.tchse.com (HELO flagship.tchse.com) (209.85.32.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 08 Feb 2008 23:05:28 +0000 Received: from cpc2-port4-0-0-cust303.cos2.cable.ntl.com ([82.25.97.48] helo=[127.0.0.1]) by flagship.tchse.com with esmtpa (Exim 4.63) (envelope-from ) id 1JNcHe-0008A6-No for gdb-patches@sourceware.org; Fri, 08 Feb 2008 18:05:26 -0500 Message-ID: <47ACE034.6020802@devkitpro.org> Date: Fri, 08 Feb 2008 23:05:00 -0000 From: Dave Murphy User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: [PATCH] build powerpc sim for mingw host Content-Type: multipart/mixed; boundary="------------050209060301000405030808" X-Antivirus: avast! (VPS 080208-0, 08/02/2008), Outbound message X-Antivirus-Status: Clean X-IsSubscribed: yes 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: 2008-02/txt/msg00160.txt.bz2 This is a multi-part message in MIME format. --------------050209060301000405030808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 166 Just a quick fix to allow building a powerpc gdb for mingw host. I have an FSF assignment for gdb [MURPHY RT 338278] on file but this is just a small change. Dave --------------050209060301000405030808 Content-Type: text/plain; name="table.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="table.c.patch" Content-length: 656 2008-02-07 Dave Murphy * table.c (table_push) : correct file read under mingw as well as cygwin Index: sim/ppc/table.c =================================================================== RCS file: /cvs/src/src/sim/ppc/table.c,v retrieving revision 1.2 diff -u -r1.2 table.c --- sim/ppc/table.c 12 Jan 2002 10:21:12 -0000 1.2 +++ sim/ppc/table.c 6 Feb 2008 05:07:41 -0000 @@ -128,7 +128,7 @@ file->pos = file->buffer; /* read it in */ -#ifdef __CYGWIN32__ +#ifdef __WIN32__ if ((file->size) && ((nr = read(fd, file->buffer, file->size)) <= 0)) { #else if ((nr = read(fd, file->buffer, file->size)) < file->size) { --------------050209060301000405030808--