From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1180 invoked by alias); 13 Sep 2006 12:33:11 -0000 Received: (qmail 1172 invoked by uid 22791); 13 Sep 2006 12:33:10 -0000 X-Spam-Check-By: sourceware.org Received: from omta05sl.mx.bigpond.com (HELO omta05sl.mx.bigpond.com) (144.140.93.195) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 13 Sep 2006 12:33:01 +0000 Received: from kiwi.ods.com.au ([60.227.162.172]) by omta05sl.mx.bigpond.com with ESMTP id <20060913123256.CZED11832.omta05sl.mx.bigpond.com@kiwi.ods.com.au> for ; Wed, 13 Sep 2006 12:32:56 +0000 Received: from [172.16.100.194] (lapdog.ods.com.au [172.16.100.194]) by kiwi.ods.com.au (8.12.8/8.12.8) with ESMTP id k8DCWtOG028586 for ; Wed, 13 Sep 2006 22:32:56 +1000 Message-ID: <4507FA7A.70504@rtems.org> Date: Wed, 13 Sep 2006 12:33:00 -0000 From: Chris Johns User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: H8300 simulator on MinGW fails to compile. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00062.txt.bz2 Hi, Building the target h8300-rtems4.7 on a MinGW host configured with: $ head config.status #! /bin/sh # Generated automatically by configure. # Run this file to recreate the current configuration. # This directory was configured as follows, # on host lapdog: # # ../gdb-6.5/configure --target=h8300-rtems4.7 --verbose --disable-nls --without-included-gettext --disable-win32-registry --disable-werror --enable-sim # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. fails to compile as signal numbers are not present. The patch is against 6.5 sources. Ok ? Regards Chris 2006-09-13 Chris Johns * sim-signal.c: Add __MINGW32__ to define the SIGTRAP, SIGBUS, and SIGQUIT. --- gdb-6.5/sim/common/sim-signal.c Wed Sep 13 19:04:12 2006 +++ gdb-6.5/sim/common/sim-signal.c~ Tue Nov 29 13:43:06 2005 @@ -27,7 +27,7 @@ to not think the process has died (so it can be debugged at the point of failure). */ -#if defined (_MSC_VER) || __MINGW32__ +#ifdef _MSC_VER #ifndef SIGTRAP #define SIGTRAP 5 #endif 2006-09-13 Chris Johns * compile.c: Define SIGBUS if not provided. --- gdb-6.5/sim/h8300/compile.c Wed Sep 13 19:00:37 2006 +++ gdb-6.5/sim/h8300/compile.c~ Tue Jun 29 05:26:37 2004 @@ -37,9 +37,6 @@ #ifndef SIGTRAP # define SIGTRAP 5 #endif -#ifndef SIGBUS -# define SIGBUS 7 -#endif int debug;