From patchwork Mon Jul 27 16:08:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 7871 Received: (qmail 71951 invoked by alias); 27 Jul 2015 16:08:31 -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 71930 invoked by uid 89); 27 Jul 2015 16:08:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: mail-qg0-f54.google.com Received: from mail-qg0-f54.google.com (HELO mail-qg0-f54.google.com) (209.85.192.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 27 Jul 2015 16:08:29 +0000 Received: by qged69 with SMTP id d69so55060362qge.0 for ; Mon, 27 Jul 2015 09:08:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xHlgkv99haQLH/jImqfiPnLHzIlOJhYXje1nt3yf/54=; b=N4t/03SSx3ZP7L/J10gE0CjA2VnyvvoDH5/l3MRq/548pER5KNYaBzE/q9A6XcrOQl EO484Qy+6cx1xgEHQ57EfSQNtD0qfDVh8y32yAx0qfww2aadLqmZKiloUSDm1l7catDM MMIXIMDUMF/T0DKetU57BvndlaCC7VE9NVJeOX/VthedKTDty76XL+3CAjJKc7ngFE5Q D/fKRzoSYcHFX3AeEmshdL9CG5IU0q5s+cuNbEKtfKjqFFLozywy0uCG2Hu676mk9Sj2 nXutAiI5V7JVLZzICApnmE94oXkSivScRq3ztvXExbTmcuP23NjPTSAuJHhODHuO/+2U 3iBw== X-Gm-Message-State: ALoCoQk7fffQcSEV1+6WP0XPIDfx2vI8iqVGoLAVKTm5MS60y8ziAfwzr6Np83tiDVU3kQSnqrgw X-Received: by 10.140.147.196 with SMTP id 187mr31550791qht.59.1438013307612; Mon, 27 Jul 2015 09:08:27 -0700 (PDT) Received: from localhost.localdomain (ool-4353acd8.dyn.optonline.net. [67.83.172.216]) by smtp.gmail.com with ESMTPSA id e21sm9422402qhc.14.2015.07.27.09.08.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 09:08:27 -0700 (PDT) From: Patrick Palka To: gdb-patches@sourceware.org Cc: Patrick Palka Subject: [PATCH] Call target_terminal_ours in quit_force Date: Mon, 27 Jul 2015 12:08:19 -0400 Message-Id: <1438013299-1449-1-git-send-email-patrick@parcs.ath.cx> We should make sure our terminal settings are in effect before finally quitting GDB. Our terminal settings may not be in effect at this point if we are e.g. quitting due to a SIGTERM. gdb/ChangeLog: * top.c (quit_force): Call target_terminal_ours. --- gdb/top.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/top.c b/gdb/top.c index 1e30b1c..1a31194 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -1494,6 +1494,8 @@ quit_force (char *args, int from_tty) int exit_code = 0; struct qt_args qt; + target_terminal_ours (); + /* An optional expression may be used to cause gdb to terminate with the value of that expression. */ if (args)