This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] SIGTRAP undefined in arm simulator
- From: Paul Brook <paul at codesourcery dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 30 Mar 2005 17:07:43 +0100
- Subject: [patch] SIGTRAP undefined in arm simulator
- Organization: CodeSourcery
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 <paul@codesourcery.com>
* 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;