From patchwork Sun Jun 16 18:27:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 33151 Received: (qmail 110461 invoked by alias); 16 Jun 2019 18:27:18 -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 110445 invoked by uid 89); 16 Jun 2019 18:27:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:209.85.221.67, H*RU:209.85.221.67 X-HELO: mail-wr1-f67.google.com Received: from mail-wr1-f67.google.com (HELO mail-wr1-f67.google.com) (209.85.221.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Jun 2019 18:27:16 +0000 Received: by mail-wr1-f67.google.com with SMTP id v14so7520742wrr.4 for ; Sun, 16 Jun 2019 11:27:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id; bh=p97SiBMt1HZDsJjKogMErr5lNjhpPXrMEqU5fm4t2pk=; b=hVp+6rGrzGHCIoMZTngmBhIH4IMKveh3B6hKNytERvWXNvzaKUTnsm3L0+5SGfmal2 YK0Bb1rtrSJ3WaVKITfxCsgRXGHp0jl1E/Z2Hqc8KGYIVt7ebIwmhWZCNPk5J1jifkju W9qEChgEfINzTLxJoIqbpRwTq6/WQ5CeEtFJGRdyE7bzrhaIKSUIohvG8SLcmFsfjR3F rY3DC8Mr6QxGaBT6tvpmMu80MJZXnkHZwAERIQ8UVqZSyJMSGe2oknO/oPa4TPkLPZU/ C39euzYnIQx3r7/9E4rcomYABxLf/WpuKucuhR2aPRzsT9ChB6ql1czbzjxiCLkz00cu +cgQ== Return-Path: Received: from localhost (host86-180-62-212.range86-180.btcentralplus.com. [86.180.62.212]) by smtp.gmail.com with ESMTPSA id h8sm8277953wmf.12.2019.06.16.11.27.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 Jun 2019 11:27:13 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PUSHED] gdb: Remove unused signal mask Date: Sun, 16 Jun 2019 19:27:11 +0100 Message-Id: <20190616182711.22468-1-andrew.burgess@embecosm.com> X-IsSubscribed: yes In the following commit: commit 7feb7d068ae65557ede03c36468ebac61b0939ca Date: Mon May 11 12:08:03 2009 +0000 The last useful uses of normal_mask in linux-nat.c were removed, since then this variable has sat around being initialised, but never used. There should be no user visible changes after this commit. gdb/ChangeLog: * linux-nat.c (normal_mask): Delete. (_initialize_linux_nat): Don't initialise normal_mask. --- gdb/ChangeLog | 5 +++++ gdb/linux-nat.c | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 65165a2d46b..4b9eab31960 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -748,9 +748,6 @@ lwp_list_remove (struct lwp_info *lp) -/* Original signal mask. */ -static sigset_t normal_mask; - /* Signal mask for use with sigsuspend in linux_nat_wait, initialized in _initialize_linux_nat. */ static sigset_t suspend_mask; @@ -4684,9 +4681,6 @@ Enables printf debugging output."), NULL, &setdebuglist, &showdebuglist); - /* Save this mask as the default. */ - sigprocmask (SIG_SETMASK, NULL, &normal_mask); - /* Install a SIGCHLD handler. */ sigchld_action.sa_handler = sigchld_handler; sigemptyset (&sigchld_action.sa_mask);