diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-03-19 14:52:57 +0100 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-03-20 15:25:32 +0100 |
commit | 9faa006d11a5e08264a007463435f84b77864c9c (patch) | |
tree | 18f99b2c75159ac86e5b59bc8c11e136ac7cb1a6 | |
parent | 4a90f062056e842c3f53293482e0039db0da3245 (diff) | |
download | gdb-9faa006d11a5e08264a007463435f84b77864c9c.zip gdb-9faa006d11a5e08264a007463435f84b77864c9c.tar.gz gdb-9faa006d11a5e08264a007463435f84b77864c9c.tar.bz2 |
Inherit ppc_nbsd_nat_target from nbsd_nat_target
gdb/ChangeLog:
* ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
nbsd_nat_target instead of inf_ptrace_target.
* ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
nbsd_nat_target.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/ppc-nbsd-nat.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb6905b..2eac1e7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2020-03-20 Kamil Rytarowski <n54@gmx.com> + * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from + nbsd_nat_target instead of inf_ptrace_target. + * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using + nbsd_nat_target. + +2020-03-20 Kamil Rytarowski <n54@gmx.com> + * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass it to the ptrace call. * (store_registers): Likewise. diff --git a/gdb/ppc-nbsd-nat.c b/gdb/ppc-nbsd-nat.c index 67c0379..8111f3e 100644 --- a/gdb/ppc-nbsd-nat.c +++ b/gdb/ppc-nbsd-nat.c @@ -37,8 +37,9 @@ #include "ppc-nbsd-tdep.h" #include "bsd-kvm.h" #include "inf-ptrace.h" +#include "nbsd-nat.h" -struct ppc_nbsd_nat_target final : public inf_ptrace_target +struct ppc_nbsd_nat_target final : public nbsd_nat_target { void fetch_registers (struct regcache *, int) override; void store_registers (struct regcache *, int) override; |