From: Paul Brook <paul@codesourcery.com>
To: gdb-patches@sources.redhat.com
Subject: [patch] SIGTRAP undefined in arm simulator
Date: Wed, 30 Mar 2005 16:08:00 -0000 [thread overview]
Message-ID: <200503301707.44458.paul@codesourcery.com> (raw)
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;
next reply other threads:[~2005-03-30 16:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-30 16:08 Paul Brook [this message]
2005-03-30 16:12 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200503301707.44458.paul@codesourcery.com \
--to=paul@codesourcery.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox