From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id dDoAGuf59GlndQkAWB0awg (envelope-from ) for ; Fri, 01 May 2026 15:07:19 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=bmds4P6z; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 56EDA1E067; Fri, 01 May 2026 15:07:19 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 630321E067 for ; Fri, 01 May 2026 15:07:18 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 389984BB3BFA for ; Fri, 1 May 2026 19:07:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 389984BB3BFA Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=bmds4P6z Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id D45E343B5515 for ; Fri, 1 May 2026 19:06:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D45E343B5515 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D45E343B5515 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777662407; cv=none; b=waH4qLJuPuAbUYopAQQLwIzIarteH/16VrPAwQS4/rQO3zT+ly294xY06VEdZ0Dc/B5kGh+TSqxmLmj5SmK/AqZ2Gx6ki9lpLQcgh5pnAQLKcPf1zWT/KhRT8DFXFiBqckTT6umIfWq+syyuV3y/J4p469nvDQKuRzNsnv/Vj7Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777662407; c=relaxed/simple; bh=tW79mW1Ibd/vcCk0VsljG8cNHA3jLlhc37xAa4Afp14=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ORyUtUbdqWKn06BrQMKvIq4F0hzKxolDu1ZupiGA1r1oVSai/hsAU0kbJf6GKA5udI988sTJuUKIxzo9UPrOBl5kyN+8IlaM9BnmkUaHnSuc5KO+Szz7vMBp58WFasdPZ2Wmaw0LuWRjA0Cn4Laz4IGJfuA14tFT0ldu+NKCwPA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D45E343B5515 Received: from eig-obgw-6006b.ext.cloudfilter.net ([10.0.30.211]) by cmsmtp with ESMTPS id IszowA3tLnwj2ItCHwrWNN; Fri, 01 May 2026 19:06:45 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id ItCHwJB8Gw84vItCHwAmBQ; Fri, 01 May 2026 19:06:45 +0000 X-Authority-Analysis: v=2.4 cv=ZIbXmW7b c=1 sm=1 tr=0 ts=69f4f9c5 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=NGcC8JguVDcA:10 a=ItBw4LHWJt0A:10 a=_nsWVLHV4JVbKxO4PFkA:9 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tW79mW1Ibd/vcCk0VsljG8cNHA3jLlhc37xAa4Afp14=; b=bmds4P6zTOOhjXrLQvCkXPTdZZ e3/WZNbVhzLeGa9SOHifHjDwJXa/TPNXHHl4qknU6Yu4hRxSmg0TNXqnkSEug9tycedLJJVzqRMt0 2Y7sF7gtNSWJLWHDPmh6QQRNr; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:59852 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wItCH-00000003iuS-1Ryo; Fri, 01 May 2026 13:06:44 -0600 From: Tom Tromey To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 3/3] [gdb/tui] Allow second tui enable if first fails In-Reply-To: <20260429111325.1600061-4-tdevries@suse.de> (Tom de Vries's message of "Wed, 29 Apr 2026 13:13:25 +0200") References: <20260429111325.1600061-1-tdevries@suse.de> <20260429111325.1600061-4-tdevries@suse.de> X-Attribution: Tom Date: Fri, 01 May 2026 13:06:44 -0600 Message-ID: <87a4ujgda3.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wItCH-00000003iuS-1Ryo X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:59852 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfIsNZ8713Iq1c11c+QW+Ef6MGecfpWlCJYAL7hPJXd7Y4Y8wRoYb5Ao8Dc9dE/xW+x27kmInbF6yuh0marTT3mGZM7mGbx7sqIh1zSlDDt7g/S/JvugY nsUC22FxEV9wYveCibseSN+Q/ZhcwvvrzUQbBW/dLl3O1whZK/pNdPd8Cnjm/jowbd1WsWvPKvb67zgNZJcvrLW8i39IGulxD68= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Tom" == Tom de Vries writes: Tom> Commit fb23d7ba4a2 ("[gdb/tui] Handle error in tui_enable") handles a Tom> particular error during tui_enable, but doesn't allow trying to enable TUI Tom> again. Tom> I tried to get this to work, but didn't manage because I didn't understand the Tom> interaction between endwin and the "tui_batch_rendering defer" destructor: Tom> - first endwin restores the shell terminal mode Tom> - then the defer destructor calls doupdate, restoring program shell mode. This is probably just an oversight in tui_batch_rendering and perhaps the destructor should check some other flag as well before calling doupdate. Tom