From patchwork Thu May 15 00:26:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 349010 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 6B7CB140087 for ; Thu, 15 May 2014 10:26:53 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5EFCA93E55; Thu, 15 May 2014 00:26:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z6Lh5ojptyse; Thu, 15 May 2014 00:26:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6B31A93E3B; Thu, 15 May 2014 00:26:50 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id D505F1BF867 for ; Thu, 15 May 2014 00:26:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CFB29332C6 for ; Thu, 15 May 2014 00:26:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xzy0mYFtLhci for ; Thu, 15 May 2014 00:26:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) by silver.osuosl.org (Postfix) with ESMTPS id E1F7C332BF for ; Thu, 15 May 2014 00:26:47 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id mc6so227045lab.30 for ; Wed, 14 May 2014 17:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Flmsh3yv/pmLEhxXVq6ihKRj56VLthTuHDI5eQoSHX0=; b=nyriRPcRnJjjdLjXehAOwjpMZMIhKUquW+s7yNYoREjqSHfDSFZyP/IZK5kYvHeOjb EmHjwERY7CrzqCfxbF1FNc2HOYUWxm3WW74sPUFHYO9jICpyJnkh8D1FwwnIoIX3HJU7 0t6oGkRVaNTmuex/zgsy5QelimBf1bM5D2jmA+2rhk7o6F+Wllub6Dl2G4lNuu52fznR TMEIMiljVz/9geTkRAo9JHecPA673mVoMQjSUfSZJXwae+g11NfCXvIRu1hutow0/JGo OSCSWypN1e1dvBBAMkWngjfF8ZqJv72IYCSch8Q+Q6tfFKwgURgGHjhA0GcwhLptW4sc VVkQ== X-Received: by 10.152.6.131 with SMTP id b3mr4925849laa.9.1400113605777; Wed, 14 May 2014 17:26:45 -0700 (PDT) Received: from octofox.metropolis ([188.134.19.124]) by mx.google.com with ESMTPSA id bj7sm3532953lbc.22.2014.05.14.17.26.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 May 2014 17:26:44 -0700 (PDT) From: Max Filippov To: buildroot@uclibc.org Date: Thu, 15 May 2014 04:26:01 +0400 Message-Id: <1400113561-851-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.8.1.4 Cc: Thomas Petazzoni , linux-xtensa@linux-xtensa.org Subject: [Buildroot] [PATCH] gdb: add xtensa fixes for 7.5.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Two fixes for xtensa are still applicable to gdb-7.5.1, which is now the default; copy them from 7.4.1 and rename accordingly. This fixes native and cross-gdb build for xtensa. Signed-off-by: Max Filippov --- .../gdb/7.5.1/gdb-100-xtensa-asm-ptrace-h.patch | 22 ++++++++++++++++++++++ package/gdb/7.5.1/gdb-101-xtensa-regsize.patch | 19 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 package/gdb/7.5.1/gdb-100-xtensa-asm-ptrace-h.patch create mode 100644 package/gdb/7.5.1/gdb-101-xtensa-regsize.patch diff --git a/package/gdb/7.5.1/gdb-100-xtensa-asm-ptrace-h.patch b/package/gdb/7.5.1/gdb-100-xtensa-asm-ptrace-h.patch new file mode 100644 index 0000000..3d1b07c --- /dev/null +++ b/package/gdb/7.5.1/gdb-100-xtensa-asm-ptrace-h.patch @@ -0,0 +1,22 @@ +--- gdb-7.4.1/gdb/xtensa-linux-nat.c.orig 2012-10-19 16:23:06.908165323 -0700 ++++ gdb-7.4.1/gdb/xtensa-linux-nat.c 2012-10-19 16:35:30.792134876 -0700 +@@ -36,7 +36,7 @@ + #include "gdb_wait.h" + #include + #include +-#include ++#include + + #include "gregset.h" + #include "xtensa-tdep.h" +--- gdb-7.4.1/gdb/gdbserver/linux-xtensa-low.c.orig 2012-10-19 16:24:06.260162894 -0700 ++++ gdb-7.4.1/gdb/gdbserver/linux-xtensa-low.c 2012-10-19 16:36:07.920133357 -0700 +@@ -23,7 +23,7 @@ + /* Defined in auto-generated file reg-xtensa.c. */ + void init_registers_xtensa (void); + +-#include ++#include + #include + + #include "xtensa-xtregs.c" diff --git a/package/gdb/7.5.1/gdb-101-xtensa-regsize.patch b/package/gdb/7.5.1/gdb-101-xtensa-regsize.patch new file mode 100644 index 0000000..e10bb8f --- /dev/null +++ b/package/gdb/7.5.1/gdb-101-xtensa-regsize.patch @@ -0,0 +1,19 @@ +--- gdb-7.4.1/gdb/xtensa-tdep.h.orig 2012-10-30 11:40:23.546448594 -0700 ++++ gdb-7.4.1/gdb/xtensa-tdep.h 2012-10-30 11:41:43.078445337 -0700 +@@ -17,6 +17,7 @@ + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#include + + /* XTENSA_TDEP_VERSION can/should be changed along with XTENSA_CONFIG_VERSION + whenever the "tdep" structure changes in an incompatible way. */ +@@ -84,7 +85,7 @@ + /* Xtensa ELF core file register set representation ('.reg' section). + Copied from target-side ELF header . */ + +-typedef unsigned long xtensa_elf_greg_t; ++typedef uint32_t xtensa_elf_greg_t; + + typedef struct + {