From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24155 invoked by alias); 29 Apr 2005 14:18:35 -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 23649 invoked from network); 29 Apr 2005 14:18:07 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 29 Apr 2005 14:18:07 -0000 Received: (qmail 21464 invoked from network); 29 Apr 2005 14:18:06 -0000 Received: from localhost (HELO 81-178-253-32.dsl.pipex.com) (paul@127.0.0.1) by mail.codesourcery.com with SMTP; 29 Apr 2005 14:18:06 -0000 From: Paul Brook To: gdb-patches@sources.redhat.com Subject: [csl-am] missing SIGTRAP Date: Fri, 29 Apr 2005 14:18:00 -0000 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_dIkcC4Co7GBNMP0" Message-Id: <200504291518.05038.paul@codesourcery.com> X-SW-Source: 2005-04/txt/msg00423.txt.bz2 --Boundary-00=_dIkcC4Co7GBNMP0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 525 It appears that the builtin simulators use host signal numbers to communicate with gdb. This causes problems on windows hosts because SIGTRAP isn't defined. The attached patch provides a definition for SIGTRAP if the host doesn't have one. This probably isn't the "right way" to fix this, but it's near enough for our purposes. Applied to csl-arm-20050325-branch. Paul 2005-04-29 Paul Brook * gdb/remote-sim.c (SIGTRAP): Provide default defnition. * gdb/signals/signals.c (SIGRAP): Ditto. --Boundary-00=_dIkcC4Co7GBNMP0 Content-Type: text/x-diff; charset="us-ascii"; name="patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch" Content-length: 1074 Index: gdb/remote-sim.c =================================================================== RCS file: /var/cvsroot/src-cvs/src/gdb/remote-sim.c,v retrieving revision 1.46.2.1 diff -u -p -r1.46.2.1 remote-sim.c --- gdb/remote-sim.c 29 Mar 2005 02:52:05 -0000 1.46.2.1 +++ gdb/remote-sim.c 28 Apr 2005 00:58:33 -0000 @@ -44,6 +44,10 @@ #include "sim-regno.h" #include "arch-utils.h" +#ifndef SIGTRAP +#define SIGTRAP 5 +#endif + /* Prototypes */ extern void _initialize_remote_sim (void); Index: gdb/signals/signals.c =================================================================== RCS file: /var/cvsroot/src-cvs/src/gdb/signals/signals.c,v retrieving revision 1.9 diff -u -p -r1.9 signals.c --- gdb/signals/signals.c 8 Jun 2003 18:27:14 -0000 1.9 +++ gdb/signals/signals.c 28 Apr 2005 14:47:13 -0000 @@ -30,6 +30,10 @@ #include +#ifndef SIGTRAP +#define SIGTRAP 5 +#endif + /* Always use __SIGRTMIN if it's available. SIGRTMIN is the lowest _available_ realtime signal, not the lowest supported; glibc takes several for its own use. */ --Boundary-00=_dIkcC4Co7GBNMP0--