This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] gdb: xtensa: fix build
- From: Baruch Siach <baruch at tkos dot co dot il>
- To: gdb-patches at sourceware dot org
- Cc: Baruch Siach <baruch at tkos dot co dot il>
- Date: Thu, 16 Jan 2014 15:01:53 +0200
- Subject: [PATCH] gdb: xtensa: fix build
- Authentication-results: sourceware.org; auth=none
We need asm/ptrace.h for PTRACE_GETXTREGS.
gdb/
* xtensa-linux-nat.c: #include asm/ptrace.h instead of sys/ptrace.h
gdb/gdbserver/
* linux-xtensa-low.c: #include asm/ptrace.h instead of sys/ptrace.h
---
gdb/gdbserver/linux-xtensa-low.c | 2 +-
gdb/xtensa-linux-nat.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/gdbserver/linux-xtensa-low.c b/gdb/gdbserver/linux-xtensa-low.c
index 7db97a9cc543..479b65b26b00 100644
--- a/gdb/gdbserver/linux-xtensa-low.c
+++ b/gdb/gdbserver/linux-xtensa-low.c
@@ -24,7 +24,7 @@
void init_registers_xtensa (void);
extern const struct target_desc *tdesc_xtensa;
-#include <sys/ptrace.h>
+#include <asm/ptrace.h>
#include <xtensa-config.h>
#include "xtensa-xtregs.c"
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c
index 2372e792f3fe..1ebae3266be0 100644
--- a/gdb/xtensa-linux-nat.c
+++ b/gdb/xtensa-linux-nat.c
@@ -35,7 +35,7 @@
#include "gdb_wait.h"
#include <fcntl.h>
#include <sys/procfs.h>
-#include <sys/ptrace.h>
+#include <asm/ptrace.h>
#include "gregset.h"
#include "xtensa-tdep.h"
--
1.8.5.2