aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2014-03-01 11:49:58 +0100
committerMark Kettenis <kettenis@gnu.org>2014-03-01 11:49:58 +0100
commit874a80af9f24c0009222e3860d351eccf5a1bc0d (patch)
tree53b2b5835a7f26161b502ee935d88df7221653d6
parent83046454b52f32e94780ab6f569a5923383aee65 (diff)
downloadgdb-874a80af9f24c0009222e3860d351eccf5a1bc0d.zip
gdb-874a80af9f24c0009222e3860d351eccf5a1bc0d.tar.gz
gdb-874a80af9f24c0009222e3860d351eccf5a1bc0d.tar.bz2
Enable rthreads support on OpenBSD/amd64.
gdb/ChangeLog: * amd64obsd-nat.c (_initialize_amd64obsd_nat): Call obsd_add_target instead of add_target. * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/amd64obsd-nat.c5
-rw-r--r--gdb/config/i386/obsd64.mh2
3 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2c29950..c5c1675 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
* valops.c (find_oload_champ): Remove unneccesary argument METHOD.
diff --git a/gdb/amd64obsd-nat.c b/gdb/amd64obsd-nat.c
index e986c1b..01253cb 100644
--- a/gdb/amd64obsd-nat.c
+++ b/gdb/amd64obsd-nat.c
@@ -26,6 +26,7 @@
#include "amd64-tdep.h"
#include "amd64-nat.h"
+#include "obsd-nat.h"
/* Mapping between the general-purpose registers in OpenBSD/amd64
`struct reg' format and GDB's register cache layout for
@@ -137,8 +138,8 @@ _initialize_amd64obsd_nat (void)
amd64_native_gregset32_num_regs = ARRAY_SIZE (amd64obsd32_r_reg_offset);
amd64_native_gregset64_reg_offset = amd64obsd_r_reg_offset;
- /* We've got nothing to add to the common *BSD/amd64 target. */
- add_target (amd64bsd_target ());
+ /* Add some extra features to the common *BSD/amd64 target. */
+ obsd_add_target (amd64bsd_target ());
/* Support debugging kernel virtual memory images. */
bsd_kvm_add_target (amd64obsd_supply_pcb);
diff --git a/gdb/config/i386/obsd64.mh b/gdb/config/i386/obsd64.mh
index 5c9899c..386a582 100644
--- a/gdb/config/i386/obsd64.mh
+++ b/gdb/config/i386/obsd64.mh
@@ -1,5 +1,5 @@
# Host: OpenBSD/amd64
-NATDEPFILES= fork-child.o inf-ptrace.o \
+NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o \
amd64-nat.o amd64bsd-nat.o amd64obsd-nat.o bsd-kvm.o
LOADLIBES= -lkvm