From 64f57f3d7d7b8e7bf9f57caa1389ac5ee3ecfec7 Mon Sep 17 00:00:00 2001 From: Pedro Franco de Carvalho Date: Mon, 29 Oct 2018 12:05:11 -0300 Subject: [PATCH] [PowerPC] Include nat/linux-ptrace.h in native targets Patch "[PowerPC] Add support for PPR and DSCR" used PTRACE_GETREGSET/SETREGSET without including the fallback definitions from "nat/linux-ptrace.h". Include this header to avoid breaking builds in systems that don't define them. gdb/ChangeLog: 2018-10-31 Pedro Franco de Carvalho * ppc-linux-nat.c: Include nat/linux-ptrace.h. gdb/gdbserver/ChangeLog: 2018-10-31 Pedro Franco de Carvalho * linux-ppc-low.c: Include nat/linux-ptrace.h. --- gdb/ChangeLog | 4 ++++ gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/linux-ppc-low.c | 1 + gdb/ppc-linux-nat.c | 1 + 4 files changed, 10 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cc782cb493..112785e920 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-10-31 Pedro Franco de Carvalho + + * ppc-linux-nat.c: Include nat/linux-ptrace.h. + 2018-10-31 Andrew Burgess * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field. diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index f7ae3515ab..1b016d573c 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2018-10-31 Pedro Franco de Carvalho + + * linux-ppc-low.c: Include nat/linux-ptrace.h. + 2018-10-26 Pedro Franco de Carvalho * configure.srv (ipa_ppc_linux_regobj): Add diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c index 12cb56a2b2..fd3d8fe194 100644 --- a/gdb/gdbserver/linux-ppc-low.c +++ b/gdb/gdbserver/linux-ppc-low.c @@ -28,6 +28,7 @@ #include "arch/ppc-linux-common.h" #include "arch/ppc-linux-tdesc.h" #include "nat/ppc-linux.h" +#include "nat/linux-ptrace.h" #include "linux-ppc-tdesc-init.h" #include "ax.h" #include "tracepoint.h" diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index e83912de4b..8d35682ca4 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -36,6 +36,7 @@ #include #include #include "nat/gdb_ptrace.h" +#include "nat/linux-ptrace.h" #include "inf-ptrace.h" /* Prototypes for supply_gregset etc. */ -- 2.34.1