aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2014-03-01 12:00:19 +0100
committerMark Kettenis <kettenis@gnu.org>2014-03-01 12:00:19 +0100
commit96c70abaef209c125af95108ed28708cd394cac0 (patch)
tree017dd2cfbfb4660a7e0241cd8c74ef2e3caf3a60 /gdb
parent874a80af9f24c0009222e3860d351eccf5a1bc0d (diff)
downloadgdb-96c70abaef209c125af95108ed28708cd394cac0.zip
gdb-96c70abaef209c125af95108ed28708cd394cac0.tar.gz
gdb-96c70abaef209c125af95108ed28708cd394cac0.tar.bz2
Enable rthreads support on OpenBSD/mips64.
gdb/ChangeLog: * mips64obsd-nat.c: Include "obsd-nath". (_initialize_mips64obsd_nat): Call obsd_add_target instead of add_target * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/config/mips/obsd64.mh2
-rw-r--r--gdb/mips64obsd-nat.c3
3 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c5c1675..3692332 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2014-03-01 Mark Kettenis <kettenis@gnu.org>
+ * mips64obsd-nat.c: Include "obsd-nath".
+ (_initialize_mips64obsd_nat): Call obsd_add_target instead of
+ add_target
+ * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
+
+2014-03-01 Mark Kettenis <kettenis@gnu.org>
+
* amd64obsd-nat.c (_initialize_amd64obsd_nat): Call
obsd_add_target instead of add_target.
* config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
diff --git a/gdb/config/mips/obsd64.mh b/gdb/config/mips/obsd64.mh
index b41b2ee..ed04f9e 100644
--- a/gdb/config/mips/obsd64.mh
+++ b/gdb/config/mips/obsd64.mh
@@ -1,2 +1,2 @@
# Host: OpenBSD/mips64
-NATDEPFILES= fork-child.o inf-ptrace.o mips64obsd-nat.o
+NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o mips64obsd-nat.o
diff --git a/gdb/mips64obsd-nat.c b/gdb/mips64obsd-nat.c
index 75ffd89..0b51507 100644
--- a/gdb/mips64obsd-nat.c
+++ b/gdb/mips64obsd-nat.c
@@ -28,6 +28,7 @@
#include "mips-tdep.h"
#include "inf-ptrace.h"
+#include "obsd-nat.h"
/* Shorthand for some register numbers used below. */
#define MIPS_PC_REGNUM MIPS_EMBED_PC_REGNUM
@@ -121,5 +122,5 @@ _initialize_mips64obsd_nat (void)
t = inf_ptrace_target ();
t->to_fetch_registers = mips64obsd_fetch_inferior_registers;
t->to_store_registers = mips64obsd_store_inferior_registers;
- add_target (t);
+ obsd_add_target (t);
}