[PowerPC] Include nat/linux-ptrace.h in native targets
authorPedro Franco de Carvalho <pedromfc@linux.ibm.com>
Mon, 29 Oct 2018 15:05:11 +0000 (12:05 -0300)
committerPedro Franco de Carvalho <pedromfc@linux.ibm.com>
Wed, 31 Oct 2018 13:59:26 +0000 (10:59 -0300)
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  <pedromfc@linux.ibm.com>

* ppc-linux-nat.c: Include nat/linux-ptrace.h.

gdb/gdbserver/ChangeLog:
2018-10-31  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>

* linux-ppc-low.c: Include nat/linux-ptrace.h.

gdb/ChangeLog
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-ppc-low.c
gdb/ppc-linux-nat.c

index cc782cb4933c9ecd1341b65120fbedc1a20f51ae..112785e920900f7cfaab7ea8f3ebd73810a53d46 100644 (file)
@@ -1,3 +1,7 @@
+2018-10-31  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * ppc-linux-nat.c: Include nat/linux-ptrace.h.
+
 2018-10-31  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
index f7ae3515abcf64f215e1028592a61a3f51b20c56..1b016d573c5dcad313e9d6f8f9a1297cd14e9643 100644 (file)
@@ -1,3 +1,7 @@
+2018-10-31  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * linux-ppc-low.c: Include nat/linux-ptrace.h.
+
 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
 
        * configure.srv (ipa_ppc_linux_regobj): Add
index 12cb56a2b20853f52611384c4380b7b01318b121..fd3d8fe194b9bf1d25d6376f4101587deed20dd7 100644 (file)
@@ -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"
index e83912de4bf79510e1a39081b68603843f31ed9e..8d35682ca44241f3ee7029cd56816cb3fec6f4d6 100644 (file)
@@ -36,6 +36,7 @@
 #include <fcntl.h>
 #include <sys/procfs.h>
 #include "nat/gdb_ptrace.h"
+#include "nat/linux-ptrace.h"
 #include "inf-ptrace.h"
 
 /* Prototypes for supply_gregset etc.  */