From patchwork Thu Mar 12 21:03:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 449650 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 78C9914007D for ; Fri, 13 Mar 2015 08:04:09 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 93CC6859D8; Thu, 12 Mar 2015 21:04:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30Rj8wh2x-hO; Thu, 12 Mar 2015 21:04:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5C8AE861D2; Thu, 12 Mar 2015 21:04:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id ED96C1CEEB0 for ; Thu, 12 Mar 2015 21:04:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EA67585A3A for ; Thu, 12 Mar 2015 21:04:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hhm244O++V-G for ; Thu, 12 Mar 2015 21:04:04 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by whitealder.osuosl.org (Postfix) with ESMTPS id A11FC859D8 for ; Thu, 12 Mar 2015 21:04:04 +0000 (UTC) Received: from localhost.localdomain (unknown [81.57.22.125]) by smtp1-g21.free.fr (Postfix) with ESMTP id 5A5FC9400BE; Thu, 12 Mar 2015 22:03:13 +0100 (CET) From: Romain Naour To: buildroot@buildroot.org Date: Thu, 12 Mar 2015 22:03:58 +0100 Message-Id: <1426194238-622-1-git-send-email-romain.naour@openwide.fr> X-Mailer: git-send-email 1.9.3 Subject: [Buildroot] [PATCH] package/gdb: fix build with glibc 2.20 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Backport a patch from gdb 7.8. Fixes: http://autobuild.buildroot.net/results/3d5/3d5cb8bea0964f0d46733e47d04a053021e63643/ Signed-off-by: Romain Naour --- ...lude-asm-ptrace.h-for-linux-aarch64-low.c.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 package/gdb/7.7.1/0001-Include-asm-ptrace.h-for-linux-aarch64-low.c.patch diff --git a/package/gdb/7.7.1/0001-Include-asm-ptrace.h-for-linux-aarch64-low.c.patch b/package/gdb/7.7.1/0001-Include-asm-ptrace.h-for-linux-aarch64-low.c.patch new file mode 100644 index 0000000..89e34be --- /dev/null +++ b/package/gdb/7.7.1/0001-Include-asm-ptrace.h-for-linux-aarch64-low.c.patch @@ -0,0 +1,36 @@ +From cbc39812c1721d7edd20285134fdf748d0f26127 Mon Sep 17 00:00:00 2001 +From: Ramana Radhakrishnan +Date: Fri, 23 May 2014 09:01:14 +0100 +Subject: [PATCH] Include asm/ptrace.h for linux-aarch64-low.c + +A recent change to glibc removed asm/ptrace.h from user.h for AArch64. +This meant that cross-native builds of gdbserver using trunk glibc broke +because linux-aarch64-low.c because user_hwdebug_state couldn't be found. + +This is like commit #036cd38182bde32d8297b630cd5c861d53b8949e + +2014-05-23 Ramana Radhakrishnan + + * linux-aarch64-low.c (asm/ptrace.h): Include. +[Romain: + - rebase on top of 7.7.1] +Signed-off-by: Romain Naour +--- + gdb/gdbserver/linux-aarch64-low.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c +index 1b0da6c..ba66bc8 100644 +--- a/gdb/gdbserver/linux-aarch64-low.c ++++ b/gdb/gdbserver/linux-aarch64-low.c +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + #include + + #include "gdb_proc_service.h" +-- +1.9.3 +