From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9321 invoked by alias); 30 Mar 2005 16:08:14 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8497 invoked from network); 30 Mar 2005 16:07:50 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 30 Mar 2005 16:07:50 -0000 Received: (qmail 24339 invoked from network); 30 Mar 2005 16:07:48 -0000 Received: from localhost (HELO wren.home) (paul@127.0.0.1) by mail.codesourcery.com with SMTP; 30 Mar 2005 16:07:48 -0000 From: Paul Brook Organization: CodeSourcery To: gdb-patches@sources.redhat.com Subject: [patch] SIGTRAP undefined in arm simulator Date: Wed, 30 Mar 2005 16:08:00 -0000 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503301707.44458.paul@codesourcery.com> X-SW-Source: 2005-03/txt/msg00388.txt.bz2 The arm simulator doesn't build on i686-mingw32 hosts because SIGTRAP and SIGBUS are not defined. The patch below provides definitions for these, as happens for other simulators. Applied to csl-arm-20050325-branch Ok for mainline? Paul 2005-03-30 Paul Brook * arm/wrapper.c: Provide SIGTRAP and SIGBUS. Index: sim/arm/wrapper.c =================================================================== RCS file: /cvs/src/src/sim/arm/wrapper.c,v retrieving revision 1.27 diff -u -p -r1.27 wrapper.c --- sim/arm/wrapper.c 30 Mar 2003 10:39:22 -0000 1.27 +++ sim/arm/wrapper.c 30 Mar 2005 15:17:33 -0000 @@ -38,6 +38,14 @@ #include "run-sim.h" #include "gdb/sim-arm.h" +#ifndef SIGTRAP +#define SIGTRAP 5 +#endif + +#ifndef SIGBUS +#define SIGBUS SIGSEGV +#endif + host_callback *sim_callback; static struct ARMul_State *state;