From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id B1C903858C52 for ; Sat, 16 Dec 2023 01:40:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B1C903858C52 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 B1C903858C52 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=1702690845; cv=none; b=u15aHZQ25fx9AF0XVKC/ZTzP/wQPu7atMCW4YWaFXfo/zMNOJ0V3FjLIwGCl2e0tkzkgtpjSI0fJxg03fhyIYvhJ1j59wK1KF57RntRbMp2mr4s1pOBVEJYaK7MBegouF3DNxW9pQ/2Ubid4tIXFLbvKI/bkZxyAuksAvuBP+mc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702690845; c=relaxed/simple; bh=+GTxM9Pzg3CZ+IP/uFVS9hQmEF0WfG3F5utR3WVCr0c=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lv7AtENOhZZxAReQriUObdZ3K0D7/Pwb8EsTcNFAENfLxseBDjzkwl7ZclKSFVIFjuzVkXp2ynuiPcF4qRCMnciz/NPqjKVhIXNmWIW/Dne1t078Sn6PiZjcuP/F+zBDT2wdxMrIxc8ddW9ap5DZLlQ8VKB7vFWhls1RH3v3afc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6001a.ext.cloudfilter.net ([10.0.30.140]) by cmsmtp with ESMTPS id ED9Lri3mohqFdEJfWrKt3Q; Sat, 16 Dec 2023 01:40:42 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id EJfVrkfjab8QnEJfVrsICA; Sat, 16 Dec 2023 01:40:41 +0000 X-Authority-Analysis: v=2.4 cv=IuQNzZzg c=1 sm=1 tr=0 ts=657d0019 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=e2cXIFwxEfEA:10 a=Qbun_eYptAEA:10 a=zstS-IiYAAAA:8 a=XZH2VjzEqZirxzTEkRUA:9 a=4G6NA9xxw8l3yy4pmD5M: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:In-Reply-To:Date:References :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=+GTxM9Pzg3CZ+IP/uFVS9hQmEF0WfG3F5utR3WVCr0c=; b=WsYeN3ATlMqLY1pCYF2yq6RkTY 4S+rrHVbErDH2AVv4O4Eor8YFgByzyDNX6lvW6R9YGRa/JdYRtg8P+8+3fcN3xgUmxGJ4f8qaXsVN Z7n3x+vQN59+B2Fep+0una4zF; Received: from [161.98.8.3] (port=36236 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rEJfU-0032Cj-2f; Fri, 15 Dec 2023 18:40:40 -0700 From: Tom Tromey To: Tom de Vries Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH v2] [gdb/tui] Show regs when switching to regs layout References: <20231126075250.31557-1-tdevries@suse.de> <87y1e4hfvv.fsf@tromey.com> X-Attribution: Tom Date: Fri, 15 Dec 2023 18:40:39 -0700 In-Reply-To: (Tom de Vries's message of "Sat, 9 Dec 2023 11:01:50 +0100") Message-ID: <87edfm6i20.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) 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: 161.98.8.3 X-Source-L: No X-Exim-ID: 1rEJfU-0032Cj-2f X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (prentzel) [161.98.8.3]:36236 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfL8c/jZPdI9IG2oUpenEb5AMlsSXyP9g6xb40lzVRa9NOjhl84QPJhSQ0trUWdChT3M+BLkUMqr76NefUMjfUGyZqywMYB00U9OM9fdHv8NTCWv8IR/D 0SkbFA2LH5D+pP1P/j66rPTjLkg5BtXDtTUyElqy4cy7Dg8/jFFexmx1Gbo4cLdEBr/s+nb+lcO6zJnxnpYAozVRjxvD1nS2024= X-Spam-Status: No, score=-3016.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Tom" == Tom de Vries writes: Tom> How about this approach? Tom> Rather than adding global state, it adds a function parameter. Tom> It's currently called toplevel, though I've also consider "active". This is fine by me. Really I suspect the register window refresh code can be untangled and not need any of this, but it's fine to just fix the bug and move on. Approved-By: Tom Tromey Tom