From 6018d381a00515933016c539d2fdc18ad0d304b8 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 14 Mar 2020 14:50:51 +0100 Subject: [PATCH] Inherit arm_netbsd_nat_target from nbsd_nat_target gdb/ChangeLog: * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from nbsd_nat_target instead of inf_ptrace_target. * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using nbsd_nat_target. --- gdb/ChangeLog | 7 +++++++ gdb/arm-nbsd-nat.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 49e033533e2..66ef062f16e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2020-03-14 Kamil Rytarowski + + * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from + nbsd_nat_target instead of inf_ptrace_target. + * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using + nbsd_nat_target. + 2020-03-14 Kamil Rytarowski * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass diff --git a/gdb/arm-nbsd-nat.c b/gdb/arm-nbsd-nat.c index cb31462737d..e7cd23693b6 100644 --- a/gdb/arm-nbsd-nat.c +++ b/gdb/arm-nbsd-nat.c @@ -34,8 +34,9 @@ #include "arm-nbsd-tdep.h" #include "aarch32-tdep.h" #include "inf-ptrace.h" +#include "nbsd-nat.h" -class arm_netbsd_nat_target final : public inf_ptrace_target +class arm_netbsd_nat_target final : public nbsd_nat_target { public: /* Add our register access methods. */ -- 2.30.2