From patchwork Sun Dec 16 19:39:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: info@mobile-stream.com X-Patchwork-Id: 30687 Received: (qmail 31044 invoked by alias); 16 Dec 2018 20:04:41 -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 31010 invoked by uid 89); 16 Dec 2018 20:04:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*F:U*info X-HELO: mx12.valuehost.ru Received: from mx12.valuehost.ru (HELO mx12.valuehost.ru) (217.112.42.215) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Dec 2018 20:04:39 +0000 Received: from mx7.valuehost.ru (unknown [127.0.0.255]) by mx12.valuehost.ru (Postfix) with ESMTP id 23E9551D3C for ; Sun, 16 Dec 2018 23:04:36 +0300 (MSK) From: Date: Sun, 16 Dec 2018 19:39:41 +0000 Subject: [PATCH] Use SIG_BLOCK instead of numeric constant To: gdb-patches@sourceware.org Message-Id: <20181216200436.23E9551D3C@mx12.valuehost.ru> gdb on mipsel-alpine-linux-musl* (at least) fails to start without this change because SIG_BLOCK is 1 not 0 on linux/mips (unlike most other architectures). --- gdb/common/signals-state-save-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/common/signals-state-save-restore.c b/gdb/common/signals-state-save-restore.c index 5bb66321bb..6597decbc6 100644 --- a/gdb/common/signals-state-save-restore.c +++ b/gdb/common/signals-state-save-restore.c @@ -41,7 +41,7 @@ save_original_signals_state (bool quiet) int i; int res; - res = sigprocmask (0, NULL, &original_signal_mask); + res = sigprocmask (SIG_BLOCK, NULL, &original_signal_mask); if (res == -1) perror_with_name (("sigprocmask"));