From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9136 invoked by alias); 28 Nov 2011 15:39:30 -0000 Received: (qmail 9005 invoked by uid 22791); 28 Nov 2011 15:39:28 -0000 X-SWARE-Spam-Status: No, hits=4.1 required=5.0 tests=AWL,BAYES_00,BOTNET,FROM_12LTRDOM,RDNS_DYNAMIC X-Spam-Check-By: sourceware.org Received: from bl22-166-20.dsl.telepac.pt (HELO localhost6.localdomain6) (2.83.166.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Nov 2011 15:39:13 +0000 Received: from localhost6.localdomain6 (localhost.localdomain [127.0.0.1]) by localhost6.localdomain6 (8.14.4/8.14.4/Debian-2ubuntu1) with ESMTP id pASFdAKC017978 for ; Mon, 28 Nov 2011 15:39:10 GMT Subject: [RFC/WIP PATCH 03/14] Flip to set target-async on by default To: gdb-patches@sourceware.org From: Pedro Alves Date: Mon, 28 Nov 2011 15:39:00 -0000 Message-ID: <20111128153910.17761.37341.stgit@localhost6.localdomain6> In-Reply-To: <20111128153742.17761.21459.stgit@localhost6.localdomain6> References: <20111128153742.17761.21459.stgit@localhost6.localdomain6> User-Agent: StGit/0.15 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00763.txt.bz2 This flips "set target-async" to default to on. I see no failures left with this on x86_64-linux, and there used to be none either against gdbserver, but I haven't tried recently. One thing left to decide is what to do with MI. If the frontend never flips async explicitly, should we bother to emulate sync MI output, or can we expect that all frontends can and should cope with async on by default by now? --- gdb/target.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/target.c b/gdb/target.c index 3bc4be2..c2aaa7e 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -4259,11 +4259,11 @@ maintenance_print_target_stack (char *cmd, int from_tty) } /* Controls if async mode is permitted. */ -int target_async_permitted = 0; +int target_async_permitted = 1; /* The set command writes to this variable. If the inferior is executing, linux_nat_async_permitted is *not* updated. */ -static int target_async_permitted_1 = 0; +static int target_async_permitted_1 = 1; static void set_maintenance_target_async_permitted (char *args, int from_tty,