This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |