public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: gdb-patches@sourceware.org
Cc: Baruch Siach <baruch@tkos.co.il>
Subject: [PATCH] gdb: xtensa: fix build
Date: Thu, 16 Jan 2014 13:02:00 -0000	[thread overview]
Message-ID: <f383c2af89af118246e629066ce3f0a4d0b4b6ef.1389877313.git.baruch@tkos.co.il> (raw)

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

             reply	other threads:[~2014-01-16 13:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-16 13:02 Baruch Siach [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f383c2af89af118246e629066ce3f0a4d0b4b6ef.1389877313.git.baruch@tkos.co.il \
    --to=baruch@tkos.co.il \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).