From: Kamil Rytarowski Date: Thu, 19 Mar 2020 13:52:57 +0000 (+0100) Subject: Inherit ppc_nbsd_nat_target from nbsd_nat_target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9faa006d11a5e08264a007463435f84b77864c9c;p=binutils-gdb.git Inherit ppc_nbsd_nat_target from nbsd_nat_target gdb/ChangeLog: * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from nbsd_nat_target instead of inf_ptrace_target. * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using nbsd_nat_target. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb6905b8a3b..2eac1e7349b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2020-03-20 Kamil Rytarowski + + * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from + nbsd_nat_target instead of inf_ptrace_target. + * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using + nbsd_nat_target. + 2020-03-20 Kamil Rytarowski * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass diff --git a/gdb/ppc-nbsd-nat.c b/gdb/ppc-nbsd-nat.c index 67c03790ed7..8111f3ed0b7 100644 --- a/gdb/ppc-nbsd-nat.c +++ b/gdb/ppc-nbsd-nat.c @@ -37,8 +37,9 @@ #include "ppc-nbsd-tdep.h" #include "bsd-kvm.h" #include "inf-ptrace.h" +#include "nbsd-nat.h" -struct ppc_nbsd_nat_target final : public inf_ptrace_target +struct ppc_nbsd_nat_target final : public nbsd_nat_target { void fetch_registers (struct regcache *, int) override; void store_registers (struct regcache *, int) override;