From 4fed520be264b60893aa674071947890f8172915 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 14 Mar 2020 16:05:24 +0100 Subject: [PATCH] Inherit alpha_netbsd_nat_target from nbsd_nat_target gdb/ChangeLog: * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from nbsd_nat_target instead of inf_ptrace_target. * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using nbsd_nat_target. --- gdb/ChangeLog | 7 +++++++ gdb/alpha-bsd-nat.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4407064f43c..432efe5c9e5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2020-03-14 Kamil Rytarowski + + * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from + nbsd_nat_target instead of inf_ptrace_target. + * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using + nbsd_nat_target. + 2020-03-14 Kamil Rytarowski * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of diff --git a/gdb/alpha-bsd-nat.c b/gdb/alpha-bsd-nat.c index 49f69f540e9..75c5589e0b7 100644 --- a/gdb/alpha-bsd-nat.c +++ b/gdb/alpha-bsd-nat.c @@ -26,6 +26,7 @@ #include "alpha-tdep.h" #include "alpha-bsd-tdep.h" #include "inf-ptrace.h" +#include "nbsd-nat.h" #include #include @@ -45,7 +46,7 @@ typedef struct fpreg fpregset_t; #include "gregset.h" -struct alpha_bsd_nat_target final : public inf_ptrace_target +struct alpha_bsd_nat_target final : public nbsd_nat_target { void fetch_registers (struct regcache *, int) override; void store_registers (struct regcache *, int) override; -- 2.30.2