From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2023) id 7761C385E82C; Tue, 17 Mar 2020 15:25:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7761C385E82C Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Kamil Rytarowski To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Inherit sh_nbsd_nat_target from nbsd_nat_target X-Act-Checkin: binutils-gdb X-Git-Author: Kamil Rytarowski X-Git-Refname: refs/heads/master X-Git-Oldrev: 946ffddcae7a8d0d135dd550b4bc7193b2ac1c5c X-Git-Newrev: 9809762324491b851332ce600ae9bde8dd34f601 Message-Id: <20200317152555.7761C385E82C@sourceware.org> Date: Tue, 17 Mar 2020 15:25:55 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2020 15:25:55 -0000 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9809762324491b851332ce600ae9bde8dd34f601 commit 9809762324491b851332ce600ae9bde8dd34f601 Author: Kamil Rytarowski Date: Tue Mar 17 15:07:39 2020 +0100 Inherit sh_nbsd_nat_target from nbsd_nat_target gdb/ChangeLog: * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from nbsd_nat_target instead of inf_ptrace_target. * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using nbsd_nat_target. Diff: --- gdb/ChangeLog | 7 +++++++ gdb/sh-nbsd-nat.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5cc6f6d65a3..b0b98399552 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2020-03-17 Kamil Rytarowski + + * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from + nbsd_nat_target instead of inf_ptrace_target. + * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using + nbsd_nat_target. + 2020-03-17 Kamil Rytarowski * amd64-bsd-nat.c: Include amd64-bsd-nat.h". diff --git a/gdb/sh-nbsd-nat.c b/gdb/sh-nbsd-nat.c index 47cae00d4f5..486ef9d18e9 100644 --- a/gdb/sh-nbsd-nat.c +++ b/gdb/sh-nbsd-nat.c @@ -28,9 +28,10 @@ #include "sh-tdep.h" #include "inf-ptrace.h" +#include "nbsd-nat.h" #include "regcache.h" -struct sh_nbsd_nat_target final : public inf_ptrace_target +struct sh_nbsd_nat_target final : public nbsd_nat_target { void fetch_registers (struct regcache *, int) override; void store_registers (struct regcache *, int) override;