aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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. */