From patchwork Thu Apr 3 21:01:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 336776 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id B9D011400BD for ; Fri, 4 Apr 2014 08:02:42 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E556631B5A; Thu, 3 Apr 2014 21:02:41 +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 WSzlOSUo2AXI; Thu, 3 Apr 2014 21:02:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 2101E31C7E; Thu, 3 Apr 2014 21:02:27 +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 D0E711C1E95 for ; Thu, 3 Apr 2014 21:02:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CC43B8C829 for ; Thu, 3 Apr 2014 21:02:21 +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 vU9WKTGLXzc3 for ; Thu, 3 Apr 2014 21:02:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from marvin.crapouillou.net (rev33.vpn.fdn.fr [80.67.179.33]) by whitealder.osuosl.org (Postfix) with ESMTPS id E98918C839 for ; Thu, 3 Apr 2014 21:02:17 +0000 (UTC) Received: from 95-91-234-117-dynip.superkabel.de ([95.91.234.117] helo=debian.hitronhub.home) by marvin.crapouillou.net with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.80) (envelope-from ) id 1WVom6-00045j-Cg; Thu, 03 Apr 2014 23:02:14 +0200 From: Paul Cercueil To: buildroot@busybox.net Date: Thu, 3 Apr 2014 23:01:13 +0200 Message-Id: <1396558881-29631-3-git-send-email-paul@crapouillou.net> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1396558881-29631-1-git-send-email-paul@crapouillou.net> References: <1396558881-29631-1-git-send-email-paul@crapouillou.net> Cc: Maarten ter Huurne Subject: [Buildroot] [PATCH 03/11] gdb: Patch for "unrecognized real-time signal" bug 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 From: Maarten ter Huurne This avoids the following error at GDB startup: GDB bug: target.c (gdb_signal_from_host): unrecognized real-time signal For details, see: http://sourceware.org/bugzilla/show_bug.cgi?id=14523 Signed-Off-By: Maarten ter Huurne Acked-By: Paul Cercueil --- package/gdb/7.4.1/signal-128.patch | 15 +++++++++++++++ package/gdb/7.5.1/signal-128.patch | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 package/gdb/7.4.1/signal-128.patch create mode 100644 package/gdb/7.5.1/signal-128.patch diff --git a/package/gdb/7.4.1/signal-128.patch b/package/gdb/7.4.1/signal-128.patch new file mode 100644 index 0000000..ea56372 --- /dev/null +++ b/package/gdb/7.4.1/signal-128.patch @@ -0,0 +1,15 @@ +diff -ru gdb-7.4.1.org/gdb/common/signals.c gdb-7.4.1/gdb/common/signals.c +--- gdb-7.4.1.org/gdb/common/signals.c 2012-01-06 05:43:33.000000000 +0100 ++++ gdb-7.4.1/gdb/common/signals.c 2012-08-29 22:40:56.000000000 +0200 +@@ -346,6 +346,11 @@ + else if (64 <= hostsig && hostsig <= 127) + return (enum target_signal) + (hostsig - 64 + (int) TARGET_SIGNAL_REALTIME_64); ++ else if (hostsig == 128) ++ /* Some platforms, such as Linux MIPS, have NSIG == 128, in which case ++ signal 128 is the highest realtime signal. There is no constant for ++ that though. */ ++ return TARGET_SIGNAL_UNKNOWN; + else + error (_("GDB bug: target.c (target_signal_from_host): " + "unrecognized real-time signal")); diff --git a/package/gdb/7.5.1/signal-128.patch b/package/gdb/7.5.1/signal-128.patch new file mode 100644 index 0000000..b46489e --- /dev/null +++ b/package/gdb/7.5.1/signal-128.patch @@ -0,0 +1,15 @@ +diff -ru gdb-7.5.org/gdb/common/signals.c gdb-7.5/gdb/common/signals.c +--- gdb-7.5.org/gdb/common/signals.c 2012-05-24 18:51:37.000000000 +0200 ++++ gdb-7.5/gdb/common/signals.c 2012-08-29 22:32:07.000000000 +0200 +@@ -346,6 +346,11 @@ + else if (64 <= hostsig && hostsig <= 127) + return (enum gdb_signal) + (hostsig - 64 + (int) GDB_SIGNAL_REALTIME_64); ++ else if (hostsig == 128) ++ /* Some platforms, such as Linux MIPS, have NSIG == 128, in which case ++ signal 128 is the highest realtime signal. There is no constant for ++ that though. */ ++ return GDB_SIGNAL_UNKNOWN; + else + error (_("GDB bug: target.c (gdb_signal_from_host): " + "unrecognized real-time signal"));