* [patch] SIGTRAP undefined in arm simulator
@ 2005-03-30 16:08 Paul Brook
2005-03-30 16:12 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Paul Brook @ 2005-03-30 16:08 UTC (permalink / raw)
To: gdb-patches
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] SIGTRAP undefined in arm simulator
2005-03-30 16:08 [patch] SIGTRAP undefined in arm simulator Paul Brook
@ 2005-03-30 16:12 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2005-03-30 16:12 UTC (permalink / raw)
To: Paul Brook; +Cc: gdb-patches
On Wed, Mar 30, 2005 at 05:07:43PM +0100, Paul Brook wrote:
> 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.
Yes, this is OK.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-30 16:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-30 16:08 [patch] SIGTRAP undefined in arm simulator Paul Brook
2005-03-30 16:12 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox