aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorPedro Franco de Carvalho <pedromfc@linux.ibm.com>2018-10-29 12:05:11 -0300
committerPedro Franco de Carvalho <pedromfc@linux.ibm.com>2018-10-31 10:59:26 -0300
commit64f57f3d7d7b8e7bf9f57caa1389ac5ee3ecfec7 (patch)
treea08328226d746f668d7b5fdb3d8482c97f863e4b /gdb/gdbserver
parenteb77c9df9f6d2f7aa644a170280fe31ce080f887 (diff)
downloadgdb-64f57f3d7d7b8e7bf9f57caa1389ac5ee3ecfec7.zip
gdb-64f57f3d7d7b8e7bf9f57caa1389ac5ee3ecfec7.tar.gz
gdb-64f57f3d7d7b8e7bf9f57caa1389ac5ee3ecfec7.tar.bz2
[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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/linux-ppc-low.c1
2 files changed, 5 insertions, 0 deletions
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"