From patchwork Fri Mar 18 19:18:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 11387 Received: (qmail 81945 invoked by alias); 18 Mar 2016 19:18:52 -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 81864 invoked by uid 89); 18 Mar 2016 19:18:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 18 Mar 2016 19:18:49 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 6EDF18E919 for ; Fri, 18 Mar 2016 19:18:47 +0000 (UTC) Received: from cascais.lan (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2IJIYkC028091 for ; Fri, 18 Mar 2016 15:18:47 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 14/30] Don't call clear_quit_flag in captured_main Date: Fri, 18 Mar 2016 19:18:18 +0000 Message-Id: <1458328714-4938-15-git-send-email-palves@redhat.com> In-Reply-To: <1458328714-4938-1-git-send-email-palves@redhat.com> References: <1458328714-4938-1-git-send-email-palves@redhat.com> This call seems pointless. For instance, a SIGINT handler is only installed later on. And if wasn't, I can't see why we'd want to lose a Ctrl-C request. Getting rid of this allows getting rid of clear_quit_flag. gdb/ChangeLog: yyyy-mm-dd Pedro Alves * main.c (captured_main): Don't clear the quit flag. --- gdb/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gdb/main.c b/gdb/main.c index 93ed98f..c149b70 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -505,7 +505,6 @@ captured_main (void *data) dirarg = (char **) xmalloc (dirsize * sizeof (*dirarg)); ndir = 0; - clear_quit_flag (); saved_command_line = (char *) xstrdup (""); instream = stdin;