[binutils-gdb] [PowerPC] Include nat/linux-ptrace.h in native targets

Pedro Franco de Carvalho pedromfc@sourceware.org
Wed Oct 31 14:02:00 GMT 2018


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=64f57f3d7d7b8e7bf9f57caa1389ac5ee3ecfec7

commit 64f57f3d7d7b8e7bf9f57caa1389ac5ee3ecfec7
Author: Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
Date:   Mon Oct 29 12:05:11 2018 -0300

    [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  <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.

Diff:
---
 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 cc782cb..112785e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index f7ae351..1b016d5 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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
diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c
index 12cb56a..fd3d8fe 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 e83912d..8d35682 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -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.  */



More information about the Gdb-cvs mailing list