[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 cc782cb..112785e 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 f7ae351..1b016d5 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 12cb56a..fd3d8fe 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 e83912d..8d35682 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.  */