diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-03-14 16:05:24 +0100 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-03-14 16:05:24 +0100 |
commit | 4fed520be264b60893aa674071947890f8172915 (patch) | |
tree | 349a21954453c38601dfbf658378e4958b5092f5 | |
parent | 2190cf067b87e804c59c0a0c14c8ae48deabfbf4 (diff) | |
download | binutils-4fed520be264b60893aa674071947890f8172915.zip binutils-4fed520be264b60893aa674071947890f8172915.tar.gz binutils-4fed520be264b60893aa674071947890f8172915.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/alpha-bsd-nat.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4407064..432efe5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2020-03-14 Kamil Rytarowski <n54@gmx.com> + * 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 <n54@gmx.com> + * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of register_t. diff --git a/gdb/alpha-bsd-nat.c b/gdb/alpha-bsd-nat.c index 49f69f5..75c5589 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 <sys/types.h> #include <sys/ptrace.h> @@ -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; |