From 96c70abaef209c125af95108ed28708cd394cac0 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 1 Mar 2014 12:00:19 +0100 Subject: [PATCH] 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. --- gdb/ChangeLog | 7 +++++++ gdb/config/mips/obsd64.mh | 2 +- gdb/mips64obsd-nat.c | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c5c1675a35d..3692332317a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2014-03-01 Mark Kettenis + + * 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 * amd64obsd-nat.c (_initialize_amd64obsd_nat): Call diff --git a/gdb/config/mips/obsd64.mh b/gdb/config/mips/obsd64.mh index b41b2ee61f1..ed04f9eea3a 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 75ffd89a7ec..0b515079ab0 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); } -- 2.30.2