aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/ChangeLog
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2014-01-20 09:53:12 +0200
committerPedro Alves <palves@redhat.com>2014-01-20 11:43:44 +0000
commite671835b7afc90b3ff201b79f07a6fb67797bc5c (patch)
tree7794ee8f1a2623338738fbfa070902cb548cbe78 /gdb/gdbserver/ChangeLog
parentfa72205cb90527fd34753203993859907a53ead2 (diff)
downloadgdb-e671835b7afc90b3ff201b79f07a6fb67797bc5c.zip
gdb-e671835b7afc90b3ff201b79f07a6fb67797bc5c.tar.gz
gdb-e671835b7afc90b3ff201b79f07a6fb67797bc5c.tar.bz2
gdb: xtensa: fix linux ptrace includes
Currently, xtensa code using the Linux ptrace interface only include sys/ptrace.h. This file comes from the C library (glibc and uClibc, at least), and includes a declaration of the ptrace() functions, along with some cross architecture constants that are mostly copied from the file located at include/uapi/linux/ptrace.h in recent Linux kernels. For xtensa specific constants like PTRACE_GETXTREGS and PTRACE_SETXTREGS the asm/ptrace.h include from the Linux kernel UAPI is needed. The code in gdbserver xtensa specific part doesn't call ptrace() directly, so we can remove the unneeded sys/ptrace.h include. The gdb xtensa specific code needs both headers, since it calls ptrace(). gdb/ * xtensa-linux-nat.c: Include asm/ptrace.h. gdb/gdbserver/ * linux-xtensa-low.c: Include asm/ptrace.h instead of sys/ptrace.h.
Diffstat (limited to 'gdb/gdbserver/ChangeLog')
-rw-r--r--gdb/gdbserver/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 7eb9e60..1deea57 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-20 Baruch Siach <baruch@tkos.co.il>
+
+ * linux-xtensa-low.c: Include asm/ptrace.h instead of
+ sys/ptrace.h.
+
2014-01-17 Pedro Alves <palves@redhat.com>
PR build/16445