From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28839 invoked by alias); 16 Jan 2014 13:02:24 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 28828 invoked by uid 89); 16 Jan 2014 13:02:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: mx.tkos.co.il Received: from guitar.tcltek.co.il (HELO mx.tkos.co.il) (192.115.133.116) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 16 Jan 2014 13:02:23 +0000 Received: from tarshish.tkos.co.il (unknown [10.0.8.6]) by mx.tkos.co.il (Postfix) with ESMTPSA id 02A6D44005B; Thu, 16 Jan 2014 15:02:20 +0200 (IST) From: Baruch Siach To: gdb-patches@sourceware.org Cc: Baruch Siach Subject: [PATCH] gdb: xtensa: fix build Date: Thu, 16 Jan 2014 13:02:00 -0000 Message-Id: X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00602.txt.bz2 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 +#include #include #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 #include -#include +#include #include "gregset.h" #include "xtensa-tdep.h" -- 1.8.5.2