public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gdb: xtensa: fix build
@ 2014-01-16 13:02 Baruch Siach
  2014-01-16 16:46 ` Pedro Alves
  0 siblings, 1 reply; 6+ messages in thread
From: Baruch Siach @ 2014-01-16 13:02 UTC (permalink / raw)
  To: gdb-patches; +Cc: Baruch Siach

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-17 13:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-16 13:02 [PATCH] gdb: xtensa: fix build Baruch Siach
2014-01-16 16:46 ` Pedro Alves
2014-01-16 17:01   ` Baruch Siach
     [not found]     ` <CAC3St3Du78bPPpczNwdV-TvCN-egk1kFn=L9tYveazDdse-dnA@mail.gmail.com>
2014-01-16 20:27       ` Baruch Siach
2014-01-17 13:07         ` Pedro Alves
2014-01-17 13:11           ` Baruch Siach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).