From 9faa006d11a5e08264a007463435f84b77864c9c Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Thu, 19 Mar 2020 14:52:57 +0100 Subject: [PATCH] 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. --- gdb/ChangeLog | 7 +++++++ gdb/ppc-nbsd-nat.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb6905b8a3..2eac1e7349 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 67c03790ed..8111f3ed0b 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;