aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/ppc-nbsd-nat.c3
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;