This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] SIGTRAP undefined in arm simulator


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]