From: Mark Kettenis Date: Sat, 1 Mar 2014 14:29:34 +0000 (+0100) Subject: Enable rhreads support on OpenBSD/i386. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a900370fa1af4a7a0d4a5d3f2890c868b5881744;p=binutils-gdb.git Enable rhreads support on OpenBSD/i386. gdb/ChangeLog: * i386obsd-nat.c: Include "obsd-nat.h". (_initialize_i386obsd_nat): Call obsd_add_target instead of add_target. * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 466663775a9..db7cd0392a6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2014-03-01 Mark Kettenis + + * i386obsd-nat.c: Include "obsd-nat.h". + (_initialize_i386obsd_nat): Call obsd_add_target instead of + add_target. + * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o. + 2014-03-01 Mark Kettenis * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'. diff --git a/gdb/config/i386/obsd.mh b/gdb/config/i386/obsd.mh index 5d691b3ab55..a9041f46d21 100644 --- a/gdb/config/i386/obsd.mh +++ b/gdb/config/i386/obsd.mh @@ -1,5 +1,5 @@ # Host: OpenBSD/i386 ELF -NATDEPFILES= fork-child.o inf-ptrace.o \ +NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o \ i386bsd-nat.o i386obsd-nat.o bsd-kvm.o LOADLIBES= -lkvm diff --git a/gdb/i386obsd-nat.c b/gdb/i386obsd-nat.c index a0b0808673b..db97cb684a3 100644 --- a/gdb/i386obsd-nat.c +++ b/gdb/i386obsd-nat.c @@ -28,6 +28,7 @@ #include "i386-tdep.h" #include "i386bsd-nat.h" +#include "obsd-nat.h" #include "bsd-kvm.h" static int @@ -94,8 +95,8 @@ void _initialize_i386obsd_nat (void); void _initialize_i386obsd_nat (void) { - /* We've got nothing to add to the common *BSD/i386 target. */ - add_target (i386bsd_target ()); + /* Add some extra features to the common *BSD/i386 target. */ + obsd_add_target (i386bsd_target ()); /* Support debugging kernel virtual memory images. */ bsd_kvm_add_target (i386obsd_supply_pcb);