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.
This commit is contained in:
Kamil Rytarowski 2020-03-17 15:07:39 +01:00
parent 946ffddcae
commit 9809762324
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2020-03-17 Kamil Rytarowski <n54@gmx.com>
* 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 <n54@gmx.com>
* amd64-bsd-nat.c: Include amd64-bsd-nat.h".

View File

@ -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;