public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: Remove unused signal mask
@ 2019-06-16 18:27 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2019-06-16 18:27 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bf5142e7fef4e2eca5d98cf805dbadc737118c1e

commit bf5142e7fef4e2eca5d98cf805dbadc737118c1e
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date:   Sun Jun 16 17:34:22 2019 +0100

    gdb: Remove unused signal mask
    
    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.

Diff:
---
 gdb/ChangeLog   | 5 +++++
 gdb/linux-nat.c | 6 ------
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ef62a4e..cf7a1ab 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2019-06-16  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+	* linux-nat.c (normal_mask): Delete.
+	(_initialize_linux_nat): Don't initialise normal_mask.
+
 2019-06-16  Simon Marchi  <simon.marchi@polymtl.ca>
 
 	PR gdb/24445
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 65165a2..4b9eab3 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -748,9 +748,6 @@ lwp_list_remove (struct lwp_info *lp)
 
 \f
 
-/* 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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-16 18:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-16 18:27 [binutils-gdb] gdb: Remove unused signal mask Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).