From: Pedro Franco de Carvalho Date: Mon, 29 Oct 2018 15:05:11 +0000 (-0300) Subject: [PowerPC] Include nat/linux-ptrace.h in native targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64f57f3d7d7b8e7bf9f57caa1389ac5ee3ecfec7;p=binutils-gdb.git [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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cc782cb4933..112785e9209 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 f7ae3515abc..1b016d573c5 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 12cb56a2b20..fd3d8fe194b 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 e83912de4bf..8d35682ca44 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. */