From patchwork Fri Oct 23 17:09:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 9345 Received: (qmail 120962 invoked by alias); 23 Oct 2015 17:09:16 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 120952 invoked by uid 89); 23 Oct 2015 17:09:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f73.google.com Received: from mail-pa0-f73.google.com (HELO mail-pa0-f73.google.com) (209.85.220.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 23 Oct 2015 17:09:14 +0000 Received: by pacev6 with SMTP id ev6so18457466pac.0 for ; Fri, 23 Oct 2015 10:09:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:message-id:date:subject:from:to :content-type; bh=srUD/DGtrhliqnwB6k3HX2RuWyrYNU/sV97Xqn47nRA=; b=iufiYoeZKXmw4sFnMHoJzOk2pw49IVezwPNF9IMnyf9J/SJPWAScQiSak720YnzTDV u+zCJLiGP0ZVnYZoQkWn4qN4T+q9Ee8UUe0GHm9Q+B3Y9nqaCk6THFk2zH5xInPaj1vc yCEK/bsIbVjcNkLePe4VuLCOIjdd3hOQW112aPSGRbvw5YTyGwDz+vIzTR8Z1UjCP0/A T7dB/B6J72f6Dc3ZD3oZtLTvpphFrRC9D3b//huXeGkJP2FIf+eIJbGEi1JEl+ktvTIF JTzHMJ2sEhg9+YvfAOJIBGhk57ZgEWfI3sUrTGSi9LkWQhQDhXrMmh74xNry0MjwiiFt VHdQ== X-Gm-Message-State: ALoCoQnTst34k0sky+bVu1mYSmc7rNHNHB8wjWjQk5RaJ4a+CTANbhocmS1uB74c+nGrGJV/pbqLu2YTO1BiBSSr32Sgb1B0hAid89JqqdV6RHM85xR4HOKCbZk7yXxvrcbuuXHwsvt/l52YQU+0adYZ/jutvQ8Z5Cbj+B1XXcOfqfoDt3O2T8A= MIME-Version: 1.0 X-Received: by 10.66.97.33 with SMTP id dx1mr4250430pab.9.1445620153045; Fri, 23 Oct 2015 10:09:13 -0700 (PDT) Message-ID: <001a1136c39ab418f50522c8abb3@google.com> Date: Fri, 23 Oct 2015 17:09:13 +0000 Subject: [PATCH 3/3, not 3/4] musl: Move __SIGRTMIN From: Doug Evans To: gdb-patches@sourceware.org X-IsSubscribed: yes Hi. Sorry, I miscounted, this patch series has 3, not 4 as mentioned here: https://sourceware.org/ml/gdb-patches/2015-10/msg00495.html This patch moves __SIGRTMIN out of gdbserver so gdb can use it too. With this series gdb builds and runs on musl. Testsuite results are reasonable for now. 2015-10-23 Doug Evans * gdbserver/linux-low.c (__SIGRTMIN): Move to ... * nat/linux-nat.h (__SIGRTMIN): ... here. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 7482a2b..512fba3 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -70,12 +70,6 @@ #define O_LARGEFILE 0 #endif -/* This is the kernel's hard limit. Not to be confused with - SIGRTMIN. */ -#ifndef __SIGRTMIN -#define __SIGRTMIN 32 -#endif - /* Some targets did not define these ptrace constants from the start, so gdbserver defines them locally here. In the future, these may be removed after they are added to asm/ptrace.h. */ diff --git a/gdb/nat/linux-nat.h b/gdb/nat/linux-nat.h index 0633fa9..70e6274 100644 --- a/gdb/nat/linux-nat.h +++ b/gdb/nat/linux-nat.h @@ -25,6 +25,11 @@ struct lwp_info; struct arch_lwp_info; +/* This is the kernel's hard limit. Not to be confused with SIGRTMIN. */ +#ifndef __SIGRTMIN +#define __SIGRTMIN 32 +#endif + /* Unlike other extended result codes, WSTOPSIG (status) on PTRACE_O_TRACESYSGOOD syscall events doesn't return SIGTRAP, but instead SIGTRAP with bit 7 set. */