aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2005-04-29 14:18:09 +0000
committerPaul Brook <paul@codesourcery.com>2005-04-29 14:18:09 +0000
commitb6e18937980ecc281e2a35c33b0216c6f77f38cc (patch)
tree6ef7f9b0d92c5c517fa100622d6747177e2a17e7
parent2b8857fbfc5d0cc8b1b6f3d906120169465fd2ba (diff)
downloadgdb-b6e18937980ecc281e2a35c33b0216c6f77f38cc.zip
gdb-b6e18937980ecc281e2a35c33b0216c6f77f38cc.tar.gz
gdb-b6e18937980ecc281e2a35c33b0216c6f77f38cc.tar.bz2
2005-04-29 Paul Brook <paul@codesourcery.com>
* gdb/remote-sim.c (SIGTRAP): Provide default defnition. * gdb/signals/signals.c (SIGRAP): Ditto.
-rw-r--r--ChangeLog.csl5
-rw-r--r--gdb/remote-sim.c4
-rw-r--r--gdb/signals/signals.c4
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index 74d0797..5c9c1d1 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,8 @@
+2005-04-29 Paul Brook <paul@codesourcery.com>
+
+ * gdb/remote-sim.c (SIGTRAP): Provide default defnition.
+ * gdb/signals/signals.c (SIGRAP): Ditto.
+
2005-04-28 Paul Brook <paul@codesourcery.com>
* gdb/exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 696fc9a..24e389b 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -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);
diff --git a/gdb/signals/signals.c b/gdb/signals/signals.c
index c808d1f..0ef0f02 100644
--- a/gdb/signals/signals.c
+++ b/gdb/signals/signals.c
@@ -30,6 +30,10 @@
#include <signal.h>
+#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. */